Skip to content

Commit 755f04a

Browse files
committed
Add sys/random and sys/xattr headers
1 parent 4af4347 commit 755f04a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

libc-test/build.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,6 +1290,7 @@ fn test_android(target: &str) {
12901290
"sys/personality.h",
12911291
"sys/prctl.h",
12921292
"sys/ptrace.h",
1293+
"sys/random.h",
12931294
"sys/reboot.h",
12941295
"sys/resource.h",
12951296
"sys/sendfile.h",
@@ -1307,6 +1308,7 @@ fn test_android(target: &str) {
13071308
"sys/un.h",
13081309
"sys/utsname.h",
13091310
"sys/vfs.h",
1311+
"sys/xattr.h",
13101312
"sys/wait.h",
13111313
"syslog.h",
13121314
"termios.h",
@@ -1397,6 +1399,14 @@ fn test_android(target: &str) {
13971399

13981400
cfg.skip_const(move |name| {
13991401
match name {
1402+
// Android uses old kernel headers
1403+
// These are constants used in getrandom syscall
1404+
// "GRND_NONBLOCK" | "GRND_RANDOM" => true,
1405+
1406+
// Defined by libattr not libc on linux (hard to test).
1407+
// See constant definition for more details.
1408+
// "ENOATTR" => true,
1409+
14001410
// FIXME: still necessary?
14011411
"SIG_DFL" | "SIG_ERR" | "SIG_IGN" => true, // sighandler_t weirdness
14021412
// FIXME: still necessary?

0 commit comments

Comments
 (0)