summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-07 22:18:16 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-07 22:18:16 +0000
commit71646527ef6c1d635d379c7dcf82ce5dbc14d44b (patch)
treeff0e317fec03f381d2955786c6d85e99ec53d92b
parent27f04c4b3ed2ec3d3469615d303e41ed61b1c32f (diff)
dont fail if target doesnt support mmap64
-rw-r--r--test/mmap/mmap64.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/mmap/mmap64.c b/test/mmap/mmap64.c
index 066d03c24..7886ccd29 100644
--- a/test/mmap/mmap64.c
+++ b/test/mmap/mmap64.c
@@ -10,6 +10,7 @@
int main(int argc, char **argv)
{
+#ifdef __NR_mmap64
void *ptr;
ptr = mmap64(NULL, 4096, PROT_READ|PROT_WRITE,
@@ -21,4 +22,7 @@ int main(int argc, char **argv)
}
printf("mmap returned %p\n", ptr);
exit(0);
+#else
+ exit(0);
+#endif
}