summaryrefslogtreecommitdiffstats
path: root/lib/libz/zconf.h
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2010-04-20 21:14:30 +0000
committerdelphij <delphij@FreeBSD.org>2010-04-20 21:14:30 +0000
commite4b26ec67a953a97b5d3a15de185f83a578af117 (patch)
treec8dc092f22c2647488f759e7f9990fc5073df17d /lib/libz/zconf.h
parentdc4a42cb4b6509185498a72943ae7973a596144f (diff)
downloadFreeBSD-src-e4b26ec67a953a97b5d3a15de185f83a578af117.zip
FreeBSD-src-e4b26ec67a953a97b5d3a15de185f83a578af117.tar.gz
MFV: zlib 1.2.5.
Diffstat (limited to 'lib/libz/zconf.h')
-rw-r--r--lib/libz/zconf.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/libz/zconf.h b/lib/libz/zconf.h
index 98cbe66..4efd6b2 100644
--- a/lib/libz/zconf.h
+++ b/lib/libz/zconf.h
@@ -315,10 +315,6 @@
# endif
#endif
-#ifdef HAVE_VISIBILITY_PRAGMA
-# define ZEXTERN __attribute__((visibility ("default"))) extern
-#endif
-
#ifndef ZEXTERN
# define ZEXTERN extern
#endif
@@ -368,6 +364,16 @@ typedef uLong FAR uLongf;
# include <sys/types.h> /* for off_t */
#endif
+/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
+ * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
+ * though the former does not conform to the LFS document), but considering
+ * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
+ * equivalently requesting no 64-bit operations
+ */
+#if -_LARGEFILE64_SOURCE - -1 == 1
+# undef _LARGEFILE64_SOURCE
+#endif
+
#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
# include <unistd.h> /* for SEEK_* and off_t */
# ifdef VMS
OpenPOWER on IntegriCloud