Package: zlib1g
Version: 1:1.2.3.3.dfsg-12

Attached patch checks for fseeko separately even if off64_t check
success. Assuming fseeko when ever off64_t check success caused
compile failure on MinGW32 compile (don't know if this affects any of
the official Debian platforms)

For more info (and possible new versions of the patch) see
http://vcust127.louhi.net/other/crosser/


- ML
diff -Nurd zlib/configure zlib/configure
--- zlib/configure	2007-06-19 13:26:13.000000000 +0300
+++ zlib/configure	2008-04-07 18:21:36.000000000 +0300
@@ -232,23 +232,22 @@
   CFLAGS="${CFLAGS} -D_LARGEFILE64_SOURCE=1"
   SFLAGS="${SFLAGS} -D_LARGEFILE64_SOURCE=1"
   echo "Checking for off64_t... Yes."
-  echo "Checking for fseeko... Yes."
 else
   echo "Checking for off64_t... No."
-  cat > $test.c <<EOF
+fi
+cat > $test.c <<EOF
 #include <stdio.h>
 int main(void) {
   fseeko(NULL, 0, 0);
   return 0;
 }
 EOF
-  if test "`($CC $CFLAGS -o $test $test.c) 2>&1`" = ""; then
-    echo "Checking for fseeko... Yes."
-  else
-    CFLAGS="${CFLAGS} -DNO_FSEEKO"
-    SFLAGS="${SFLAGS} -DNO_FSEEKO"
-    echo "Checking for fseeko... No."
-  fi
+if test "`($CC $CFLAGS -o $test $test.c) 2>&1`" = ""; then
+  echo "Checking for fseeko... Yes."
+else
+  CFLAGS="${CFLAGS} -DNO_FSEEKO"
+  SFLAGS="${SFLAGS} -DNO_FSEEKO"
+  echo "Checking for fseeko... No."
 fi
 
 cat > $test.c <<EOF

Reply via email to