summaryrefslogtreecommitdiffstats
path: root/test/mmap
diff options
context:
space:
mode:
Diffstat (limited to 'test/mmap')
-rw-r--r--test/mmap/Makefile4
-rw-r--r--test/mmap/mmap64.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/test/mmap/Makefile b/test/mmap/Makefile
index 4addff95a..b4c301014 100644
--- a/test/mmap/Makefile
+++ b/test/mmap/Makefile
@@ -1,6 +1,4 @@
# uClibc mmap tests
-# Licensed under the GNU Library General Public License, see COPYING.LIB
-
-TESTS = mmap mmap64
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
include ../Test.mak
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,