summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-22 00:51:01 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-22 00:51:01 +0000
commitdeea2d5cfa08046c0901c1ee75d7cc021c4f2deb (patch)
tree7cd18ced13f578b14c3a5ad139b97e773fee84eb
parent7485d23d317026d13fd53b2ab2354796d0a87629 (diff)
enable test if LFS is enabled
-rw-r--r--test/mmap/mmap64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/mmap/mmap64.c b/test/mmap/mmap64.c
index 7886ccd29..87165fe20 100644
--- a/test/mmap/mmap64.c
+++ b/test/mmap/mmap64.c
@@ -7,10 +7,11 @@
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
+#include <features.h>
int main(int argc, char **argv)
{
-#ifdef __NR_mmap64
+#ifdef __UCLIBC_HAS_LFS__
void *ptr;
ptr = mmap64(NULL, 4096, PROT_READ|PROT_WRITE,