aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2005-04-11 05:00:01 +0800
committerthierry <thierry@FreeBSD.org>2005-04-11 05:00:01 +0800
commitda47f90c2f884162d559671165c1f0715c5d955a (patch)
treee6c2eb1139725dc6d6df22551cc80ffacfb0e46a /textproc
parente90ba78e7a3e4cc608483642fff52ffc10fc1e90 (diff)
downloadfreebsd-ports-gnome-da47f90c2f884162d559671165c1f0715c5d955a.tar.gz
freebsd-ports-gnome-da47f90c2f884162d559671165c1f0715c5d955a.tar.zst
freebsd-ports-gnome-da47f90c2f884162d559671165c1f0715c5d955a.zip
Unbreak on FreeBSD-4.11.
PR: ports/79354 Submitted by: Jukka Ukkonen
Diffstat (limited to 'textproc')
-rw-r--r--textproc/domc/Makefile8
-rw-r--r--textproc/domc/files/patch-src_domc.h13
2 files changed, 20 insertions, 1 deletions
diff --git a/textproc/domc/Makefile b/textproc/domc/Makefile
index d395c43abf32..6e4f3fd966c3 100644
--- a/textproc/domc/Makefile
+++ b/textproc/domc/Makefile
@@ -32,4 +32,10 @@ INSTALLS_SHLIB= yes
PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}"
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+USE_GCC= 3.4
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/domc/files/patch-src_domc.h b/textproc/domc/files/patch-src_domc.h
new file mode 100644
index 000000000000..83e868594765
--- /dev/null
+++ b/textproc/domc/files/patch-src_domc.h
@@ -0,0 +1,13 @@
+--- src/domc.h.orig Thu Sep 9 23:52:10 2004
++++ src/domc.h Sun Apr 10 22:14:52 2005
+@@ -33,7 +33,9 @@
+ #include <errno.h>
+ #include <time.h>
+
+-#if defined(__sparc__)
++#if defined(__FreeBSD__)
++ #include <inttypes.h>
++#elif defined(__sparc__)
+ #include <sys/inttypes.h>
+ #elif defined(_WIN32)
+ typedef unsigned __int64 uint64_t;