aboutsummaryrefslogtreecommitdiffstats
path: root/x11/XFree86-4
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>2000-10-26 02:03:54 +0800
committerjmz <jmz@FreeBSD.org>2000-10-26 02:03:54 +0800
commit108741c7c920e078cd0deff95a9595059e9b17c5 (patch)
treed3769203ae81b745017752ebff015c56046e6613 /x11/XFree86-4
parent0bb6b189f9f9188ccefdee602d340c91d68285cd (diff)
downloadfreebsd-ports-gnome-108741c7c920e078cd0deff95a9595059e9b17c5.tar.gz
freebsd-ports-gnome-108741c7c920e078cd0deff95a9595059e9b17c5.tar.zst
freebsd-ports-gnome-108741c7c920e078cd0deff95a9595059e9b17c5.zip
Fix compilation problems in -current
Submitted by: marcel
Diffstat (limited to 'x11/XFree86-4')
-rw-r--r--x11/XFree86-4/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/x11/XFree86-4/Makefile b/x11/XFree86-4/Makefile
index ef9a663c336b..ca492e679072 100644
--- a/x11/XFree86-4/Makefile
+++ b/x11/XFree86-4/Makefile
@@ -78,6 +78,14 @@ pre-fetch:
.include <bsd.port.pre.mk>
+.if ${OSVERSION} > 500012
+post-patch:
+ @if [ ! -e ${WRKSRC}/include/Xarch.h.orig ]; then\
+ mv ${WRKSRC}/include/Xarch.h ${WRKSRC}/include/Xarch.h.orig;\
+ ${SED} -e 52d -e 54d < ${WRKSRC}/include/Xarch.h.orig > \
+ ${WRKSRC}/include/Xarch.h; fi
+.endif
+
pre-install:
${MKDIR} ${PREFIX}