Skip to content

Commit 50a74e9

Browse files
committed
Include Linux headers after sys headers
1 parent 01995a9 commit 50a74e9

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

libc-test/build.rs

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,19 +2274,6 @@ fn test_linux(target: &str) {
22742274
"langinfo.h",
22752275
"limits.h",
22762276
"link.h",
2277-
"linux/falloc.h",
2278-
"linux/fs.h",
2279-
"linux/genetlink.h",
2280-
"linux/if_alg.h",
2281-
"linux/if_ether.h",
2282-
"linux/if_tun.h",
2283-
"linux/input.h",
2284-
"linux/module.h",
2285-
"linux/net_tstamp.h",
2286-
"linux/netlink.h",
2287-
"linux/random.h",
2288-
"linux/seccomp.h",
2289-
"linux/sockios.h",
22902277
"locale.h",
22912278
"malloc.h",
22922279
"mntent.h",
@@ -2362,6 +2349,24 @@ fn test_linux(target: &str) {
23622349
"errno.h",
23632350
}
23642351

2352+
// Include linux headers at the end:
2353+
headers! {
2354+
cfg:
2355+
"linux/falloc.h",
2356+
"linux/fs.h",
2357+
"linux/genetlink.h",
2358+
"linux/if_alg.h",
2359+
"linux/if_ether.h",
2360+
"linux/if_tun.h",
2361+
"linux/input.h",
2362+
"linux/module.h",
2363+
"linux/net_tstamp.h",
2364+
"linux/netlink.h",
2365+
"linux/random.h",
2366+
"linux/seccomp.h",
2367+
"linux/sockios.h",
2368+
}
2369+
23652370
if x86_64 {
23662371
headers! { cfg: "sys/io.h" };
23672372
}

0 commit comments

Comments
 (0)