Skip to content

Commit 01995a9

Browse files
committed
Include aio.h as the last header
1 parent ed402e9 commit 01995a9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

libc-test/build.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2262,17 +2262,6 @@ fn test_linux(target: &str) {
22622262
// FIXME: still necessary?
22632263
cfg.flag("-Wno-deprecated-declarations");
22642264

2265-
// note: aio.h must be included before sys/mount.h
2266-
if !uclibc {
2267-
assert!(gnu || musl);
2268-
// optionally included in uclibc
2269-
headers! { cfg:
2270-
"sys/xattr.h",
2271-
"sys/sysinfo.h",
2272-
"aio.h",
2273-
}
2274-
}
2275-
22762265
headers! { cfg:
22772266
"ctype.h",
22782267
"dirent.h",
@@ -2419,6 +2408,17 @@ fn test_linux(target: &str) {
24192408
headers! { cfg: "linux/memfd.h" };
24202409
}
24212410

2411+
// note: aio.h must be included before sys/mount.h
2412+
if !uclibc {
2413+
assert!(gnu || musl);
2414+
// optionally included in uclibc
2415+
headers! { cfg:
2416+
"sys/xattr.h",
2417+
"sys/sysinfo.h",
2418+
"aio.h",
2419+
}
2420+
}
2421+
24222422
cfg.type_name(move |ty, is_struct, is_union| {
24232423
match ty {
24242424
// Just pass all these through, no need for a "struct" prefix

0 commit comments

Comments
 (0)