Include aio.h as the last header
This commit is contained in:
parent
54fcb89354
commit
cb3a9db378
@ -2262,17 +2262,6 @@ fn test_linux(target: &str) {
|
||||
// FIXME: still necessary?
|
||||
cfg.flag("-Wno-deprecated-declarations");
|
||||
|
||||
// note: aio.h must be included before sys/mount.h
|
||||
if !uclibc {
|
||||
assert!(gnu || musl);
|
||||
// optionally included in uclibc
|
||||
headers! { cfg:
|
||||
"sys/xattr.h",
|
||||
"sys/sysinfo.h",
|
||||
"aio.h",
|
||||
}
|
||||
}
|
||||
|
||||
headers! { cfg:
|
||||
"ctype.h",
|
||||
"dirent.h",
|
||||
@ -2419,6 +2408,17 @@ fn test_linux(target: &str) {
|
||||
headers! { cfg: "linux/memfd.h" };
|
||||
}
|
||||
|
||||
// note: aio.h must be included before sys/mount.h
|
||||
if !uclibc {
|
||||
assert!(gnu || musl);
|
||||
// optionally included in uclibc
|
||||
headers! { cfg:
|
||||
"sys/xattr.h",
|
||||
"sys/sysinfo.h",
|
||||
"aio.h",
|
||||
}
|
||||
}
|
||||
|
||||
cfg.type_name(move |ty, is_struct, is_union| {
|
||||
match ty {
|
||||
// Just pass all these through, no need for a "struct" prefix
|
||||
|
Loading…
Reference in New Issue
Block a user