diff options
author | Steven Fackler <sfackler@gmail.com> | 2017-11-10 19:58:04 -0800 |
---|---|---|
committer | Steven Fackler <sfackler@gmail.com> | 2017-11-10 20:04:08 -0800 |
commit | 8f7839f41bb58eefc7aa64a3eadf1486e4cf171d (patch) | |
tree | e03bea382d09b8d9c6da093b4de92ace4c757974 /libc-test | |
parent | ecc3e010646ee6cde2cd0a4e70496507281400a3 (diff) | |
download | rust-libc-8f7839f41bb58eefc7aa64a3eadf1486e4cf171d.tar.gz |
Add dl_iterate_phdr and related types
A lot of this is more broadly supported than just Linux, but support for
those can be added later.
Diffstat (limited to 'libc-test')
-rw-r--r-- | libc-test/build.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index 7b93f2d63c..ce3c6f5f55 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -256,6 +256,8 @@ fn main() { if linux { cfg.header("linux/random.h"); + cfg.header("elf.h"); + cfg.header("link.h"); } if freebsd { @@ -301,7 +303,9 @@ fn main() { "FILE" | "fd_set" | "Dl_info" | - "DIR" => ty.to_string(), + "DIR" | + "Elf32_Phdr" | + "Elf64_Phdr" => ty.to_string(), // Fixup a few types on windows that don't actually exist. "time64_t" if windows => "__time64_t".to_string(), |