$NetBSD: patch-ad,v 1.3 2012/06/03 19:57:33 wiz Exp $

--- Xfuncproto.h.in.orig	2012-03-16 06:11:44.000000000 +0000
+++ Xfuncproto.h.in
@@ -83,7 +83,7 @@ in this Software without prior written a
 #endif /* GNUC >= 4 */
 
 /* Added in X11R6.9, so available in any version of modular xproto */
-#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__CYGWIN__)
+#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__CYGWIN__) && !defined(__sun)
 # define _X_EXPORT      __attribute__((visibility("default")))
 # define _X_HIDDEN      __attribute__((visibility("hidden")))
 # define _X_INTERNAL    __attribute__((visibility("internal")))
