summaryrefslogtreecommitdiff
path: root/x11/xproto/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2008-01-24 20:15:20 +0000
committerjoerg <joerg>2008-01-24 20:15:20 +0000
commit2d62fd16d4ec672a47c6de22df2c953539cb445a (patch)
tree7457b4083f0ab8192a899015852750f769b211bb /x11/xproto/patches
parent923f2ecce471d74904b2bc1fe3e8013270d5d8e6 (diff)
downloadpkgsrc-2d62fd16d4ec672a47c6de22df2c953539cb445a.tar.gz
Disable visibility code on Solaris, even when compiling with GCC 4.
From Gilles Dauphin in PR 37634.
Diffstat (limited to 'x11/xproto/patches')
-rw-r--r--x11/xproto/patches/patch-ad13
1 files changed, 13 insertions, 0 deletions
diff --git a/x11/xproto/patches/patch-ad b/x11/xproto/patches/patch-ad
new file mode 100644
index 00000000000..2900881a2b9
--- /dev/null
+++ b/x11/xproto/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2008/01/24 20:15:20 joerg Exp $
+
+--- Xfuncproto.h.in.orig 2008-01-24 21:05:17.000000000 +0100
++++ Xfuncproto.h.in
+@@ -85,7 +85,7 @@ in this Software without prior written a
+ # define _X_ATTRIBUTE_PRINTF(x,y)
+ #endif /* GNUC >= 4 */
+
+-#if defined(__GNUC__) && (__GNUC__ >= 4)
++#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__sun__)
+ # define _X_EXPORT __attribute__((visibility("default")))
+ # define _X_HIDDEN __attribute__((visibility("hidden")))
+ # define _X_INTERNAL __attribute__((visibility("internal")))