瀏覽代碼

enable test if LFS is enabled

Mike Frysinger 18 年之前
父節點
當前提交
deea2d5cfa
共有 1 個文件被更改,包括 2 次插入1 次删除
  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,