summaryrefslogtreecommitdiff
path: root/sdk/recipes/patches/zlib/zconf.h.in.p
blob: 772dad3d976fc2f9081cb3ed50cdd0714f39346b (plain)
1
2
3
4
5
6
7
8
9
10
11
--- zconf.h.in.old	2011-01-02 21:25:38.000000000 +0000
+++ zconf.h.in	2011-01-02 21:26:07.000000000 +0000
@@ -370,7 +370,7 @@
  * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
  * equivalently requesting no 64-bit operations
  */
-#if -_LARGEFILE64_SOURCE - -1 == 1
+#if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
 #  undef _LARGEFILE64_SOURCE
 #endif