commit | d2f725eaedc9c98c353885f20c0ff7ef13e3477f | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Jul 15 15:47:47 2016 -0700 |
committer | Elliott Hughes <enh@google.com> | Mon Jul 18 12:48:39 2016 -0700 |
tree | 201e7973c24424b8a11bedcd123f01fdf119837f | |
parent | 098d8ef5b224841d93960f1cd02c73d853b6344c [diff] [blame] |
Don't declare SYS_* constants for unavailable __NR_* constants. Bug: https://code.google.com/p/android/issues/detail?id=215853 Change-Id: Iaaa3ce888deb8d032208bf636b7badaed6a72d30
diff --git a/tests/sys_syscall_test.cpp b/tests/sys_syscall_test.cpp index 9c5e350..68a7167 100644 --- a/tests/sys_syscall_test.cpp +++ b/tests/sys_syscall_test.cpp
@@ -21,3 +21,10 @@ TEST(unistd, syscall) { ASSERT_EQ(getpid(), syscall(SYS_getpid)); } + +// https://code.google.com/p/android/issues/detail?id=215853 +#if defined(__LP64__) + #if defined(SYS_mmap2) + #error SYS_mmap2 should not be defined for LP64 + #endif +#endif