]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fix _off64_t check for clang.
authorMika Lindqvist <postmaster@raasu.org>
Sun, 1 May 2016 23:02:09 +0000 (02:02 +0300)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Tue, 31 Jan 2017 09:54:45 +0000 (10:54 +0100)
configure

index de55744c6f24ee907c45db82c4c8c79891ef9c0d..c4be2b56b76602b76a337c9130c92c729070cc72 100755 (executable)
--- a/configure
+++ b/configure
@@ -456,9 +456,6 @@ echo >> configure.log
 # check for large file support, and if none, check for fseeko()
 cat > $test.c <<EOF
 #include <sys/types.h>
-#ifdef __MSYS__
-#  define off64_t _off64_t
-#endif
 off64_t dummy = 0;
 EOF
 if try $CC -c $CFLAGS -D_LARGEFILE64_SOURCE=1 $test.c; then
@@ -472,6 +469,21 @@ else
   echo "Checking for off64_t... No." | tee -a configure.log
   echo >> configure.log
   cat > $test.c <<EOF
+#include <sys/types.h>
+int main() {
+  _off64_t dummy = 0;
+  return 0;
+}
+EOF
+  if try $CC $CFLAGS -o $test $test.c $LDSHAREDLIBC; then
+    echo "Checking for _off64_t... Yes." | tee -a configure.log
+    ALL="${ALL} all64"
+    TEST="${TEST} test64"
+  else
+    echo "Checking for _off64_t... No." | tee -a configure.log
+  fi
+  echo >> configure.log
+  cat > $test.c <<EOF
 #include <stdio.h>
 int main(void) {
   fseeko(NULL, 0, 0);