diff --git a/libc-test/build.rs b/libc-test/build.rs index 977ff51c7f0fe4604c024cc26ccff0cf78d62a37..824bae5df360e47ac81bb1be332fb48de317cd00 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1235,7 +1235,6 @@ fn test_android(target: &str) { headers! { cfg: "arpa/inet.h", - "asm/mman.h", "ctype.h", "dirent.h", "dlfcn.h", @@ -1244,27 +1243,6 @@ fn test_android(target: &str) { "grp.h", "ifaddrs.h", "limits.h", - "linux/dccp.h", - "linux/futex.h", - "linux/fs.h", - "linux/genetlink.h", - "linux/if_alg.h", - "linux/if_ether.h", - "linux/if_tun.h", - "linux/magic.h", - "linux/memfd.h", - "linux/module.h", - "linux/net_tstamp.h", - "linux/netfilter/nfnetlink.h", - "linux/netfilter/nfnetlink_log.h", - "linux/netfilter/nf_tables.h", - "linux/netfilter_ipv4.h", - "linux/netfilter_ipv6.h", - "linux/netlink.h", - "linux/quota.h", - "linux/reboot.h", - "linux/seccomp.h", - "linux/sockios.h", "locale.h", "malloc.h", "net/ethernet.h", @@ -1335,6 +1313,33 @@ fn test_android(target: &str) { [x86]: "sys/reg.h", } + // Include linux headers at the end: + headers! { cfg: + "asm/mman.h", + "linux/dccp.h", + "linux/futex.h", + "linux/fs.h", + "linux/genetlink.h", + "linux/if_alg.h", + "linux/if_ether.h", + "linux/if_tun.h", + "linux/magic.h", + "linux/memfd.h", + "linux/module.h", + "linux/net_tstamp.h", + "linux/netfilter/nfnetlink.h", + "linux/netfilter/nfnetlink_log.h", + "linux/netfilter/nf_tables.h", + "linux/netfilter_ipv4.h", + "linux/netfilter_ipv6.h", + "linux/netlink.h", + "linux/quota.h", + "linux/reboot.h", + "linux/seccomp.h", + "linux/sockios.h", + + } + cfg.type_name(move |ty, is_struct, is_union| { match ty { // Just pass all these through, no need for a "struct" prefix