$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")))