Browse Source

enable test if LFS is enabled

Mike Frysinger 18 years ago
parent
commit
deea2d5cfa
1 changed files with 2 additions and 1 deletions
  1. 2 1
      test/mmap/mmap64.c

+ 2 - 1
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,