diff options
Diffstat (limited to 'tests/test-flock.c')
-rw-r--r-- | tests/test-flock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-flock.c b/tests/test-flock.c index ff688bc416..aa428ff717 100644 --- a/tests/test-flock.c +++ b/tests/test-flock.c @@ -98,7 +98,7 @@ main (int argc, char *argv[]) ASSERT (fd >= 0); ASSERT (write (fd, "hello", 5) == 5); -#if defined __linux__ +#if defined __linux__ || defined __ANDROID__ /* Invalid operation codes are rejected by the Linux implementation and by the gnulib replacement, but not by the Mac OS X implementation. */ ASSERT (flock (fd, LOCK_SH | LOCK_EX) == -1); |