uid_wrapper/aarch64-has-no-sys-access.patch
2014-08-04 10:46:06 +01:00

16 lines
448 B
Diff

Index: uid_wrapper-1.0.2/tests/testsuite.c
===================================================================
--- uid_wrapper-1.0.2.orig/tests/testsuite.c
+++ uid_wrapper-1.0.2/tests/testsuite.c
@@ -198,8 +198,10 @@ static void test_uwrap_syscall(void **st
rc = access(".", R_OK);
assert_int_equal(rc, 0);
+#ifdef SYS_access
rc = syscall(SYS_access, ".", R_OK);
assert_int_equal(rc, 0);
+#endif
ZERO_STRUCT(tv1);
ZERO_STRUCT(tv2);