diff options
-rw-r--r-- | x11/gtk2/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/x11/gtk2/Makefile b/x11/gtk2/Makefile index 0cd270bc73c..028bebfc5f2 100644 --- a/x11/gtk2/Makefile +++ b/x11/gtk2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.51 2004/05/07 01:14:51 xtraeme Exp $ +# $NetBSD: Makefile,v 1.52 2004/05/16 08:10:41 grant Exp $ # DISTNAME= gtk+-2.4.1 @@ -45,6 +45,17 @@ PRINT_PLIST_AWK+= /^@dirrm share\/themes\/Default$$/ \ { print "@unexec $${RMDIR} %D/" $$2 \ " 2>/dev/null || $${TRUE}"; next; } +.include "../../mk/compiler.mk" + +# work around /**/ in a macro definition in X11/Xlibint.h (GetEmptyReq) +# being expanded to a space, causing breakage in gdk/x11/gdkasync.c. +# +# turning on strict ISO C compliance uses a different macro definition +# which uses ## instead and does what it should. +.if !empty(CC_VERSION:MSun) +CPPFLAGS+= -Xc +.endif + post-install: ${INSTALL_DATA_DIR} ${PREFIX}/lib/gtk-2.0/engines ${INSTALL_DATA_DIR} ${PREFIX}/lib/gtk-2.0/modules |