aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/zlib/visibility.patch
diff options
context:
space:
mode:
Diffstat (limited to 'tools/depends/target/zlib/visibility.patch')
-rw-r--r--tools/depends/target/zlib/visibility.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/depends/target/zlib/visibility.patch b/tools/depends/target/zlib/visibility.patch
new file mode 100644
index 0000000000..af49fbffd7
--- /dev/null
+++ b/tools/depends/target/zlib/visibility.patch
@@ -0,0 +1,15 @@
+--- zconf.h.in 2013-01-23 21:22:22.512584179 -0500
++++ zconf.h.in 2013-01-23 21:21:56.312584196 -0500
+@@ -348,7 +348,11 @@
+ #endif
+
+ #ifndef ZEXTERN
+-# define ZEXTERN extern
++# ifdef HAVE_HIDDEN
++# define ZEXTERN extern __attribute__((visibility ("default")))
++# else
++# define ZEXTERN extern
++# endif
+ #endif
+ #ifndef ZEXPORT
+ # define ZEXPORT