소스 검색

Only build the 64 tests when relevant

Eric Andersen 22 년 전
부모
커밋
5389078d0a
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      test/unistd/preadwrite.c

+ 5 - 0
test/unistd/preadwrite.c

@@ -71,6 +71,8 @@ int test(int argc, char *argv[])
 }
 
 /* Test the 64-bit versions as well.  */
+#if defined __UCLIBC_HAS_LFS__ 
+
 #undef PREAD
 #undef PWRITE
 #define PREAD pread64
@@ -106,6 +108,7 @@ int test64(int argc, char *argv[])
     unlink (name);
     return memcmp (buf + 50, res, sizeof (buf) - 50);
 }
+#endif
 
 void prepare(void)
 {
@@ -134,6 +137,7 @@ int main (int argc, char **argv)
     }
     fprintf(stderr, "pread/pwrite test successful.\n");
 
+#if defined __UCLIBC_HAS_LFS__ 
     prepare();
     result+=test64(argc, argv);
     if (result) { 
@@ -141,5 +145,6 @@ int main (int argc, char **argv)
 	return(EXIT_FAILURE);
     }
     fprintf(stderr, "pread64/pwrite64 test successful.\n");
+#endif
     return(EXIT_SUCCESS);
 }