Skip to content
Snippets Groups Projects
  1. Sep 21, 2019
  2. Sep 20, 2019
  3. Sep 19, 2019
  4. Sep 18, 2019
  5. Sep 17, 2019
  6. Sep 16, 2019
  7. Sep 14, 2019
  8. Sep 13, 2019
  9. Sep 12, 2019
  10. Sep 11, 2019
  11. Sep 07, 2019
    • bors's avatar
      Auto merge of #1488 - loganwendholt:user-regs, r=gnzlbg · 71e298f9
      bors authored
      Copy structs from bits/user.h for musl x86_64
      
      While statically compiling a binary with `musl`, I ran into the following error regarding a missing struct:
      
      ```
      error[E0412]: cannot find type `user_regs_struct` in crate `libc`
        --> src/debug.rs:37:32
         |
      37 | fn show_user_regs(regs: &libc::user_regs_struct) -> String {
         |                                ^^^^^^^^^^^^^^^^ not found in `libc`
      ```
      
      This struct was previously added for `glibc` in #599, but was never added to `musl`, despite the data format being the same in both.
      
      This fix simply copies `user_regs_struct` into the proper location within the `musl` files.
      71e298f9
Loading