OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27f04c4
)
dont fail if target doesnt support mmap64
author
Mike Frysinger
<vapier@gentoo.org>
Wed, 7 Sep 2005 22:18:16 +0000
(22:18 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Wed, 7 Sep 2005 22:18:16 +0000
(22:18 -0000)
test/mmap/mmap64.c
patch
|
blob
|
history
diff --git
a/test/mmap/mmap64.c
b/test/mmap/mmap64.c
index
066d03c
..
7886ccd
100644
(file)
--- 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
}