aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2007-10-23 19:15:48 +0800
committerolgeni <olgeni@FreeBSD.org>2007-10-23 19:15:48 +0800
commit198d5f013160408fc597cbbbb02476bec4cdc8ac (patch)
treef3bbf409e6e80692c3bca34a979a2a0e8836fd7d /lang
parent68aaff4305a0643bb36c8d892093adb36f4bf6bd (diff)
downloadfreebsd-ports-gnome-198d5f013160408fc597cbbbb02476bec4cdc8ac.tar.gz
freebsd-ports-gnome-198d5f013160408fc597cbbbb02476bec4cdc8ac.tar.zst
freebsd-ports-gnome-198d5f013160408fc597cbbbb02476bec4cdc8ac.zip
Unbreak for GCC 4.2.
PR: ports/117386 Submitted by: Alexandre "Sunny" Kovalenko <alex.kovalenko(at)verizon.net>
Diffstat (limited to 'lang')
-rw-r--r--lang/mit-scheme/Makefile8
-rw-r--r--lang/mit-scheme/files/patch-obstack.h14
2 files changed, 15 insertions, 7 deletions
diff --git a/lang/mit-scheme/Makefile b/lang/mit-scheme/Makefile
index 8e5e5956c32f..f279f5ca2bfe 100644
--- a/lang/mit-scheme/Makefile
+++ b/lang/mit-scheme/Makefile
@@ -31,10 +31,4 @@ do-install:
@cd ${WRKDIR}/lib && ${PAX} -rw mit-scheme ${PREFIX}/lib
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/mit-scheme
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042
-BROKEN= Does not compile with GCC 4.2
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/lang/mit-scheme/files/patch-obstack.h b/lang/mit-scheme/files/patch-obstack.h
new file mode 100644
index 000000000000..6466c51ce2d3
--- /dev/null
+++ b/lang/mit-scheme/files/patch-obstack.h
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- obstack.h.orig
++++ obstack.h
+@@ -231,7 +231,7 @@
+
+ #define obstack_blank_fast(h,n) ((h)->next_free += (n))
+
+-#if defined (__GNUC__) && defined (__STDC__)
++#if defined (USE_OBSTACK_MACROS) && defined (__GNUC__) && defined (__STDC__)
+
+ /* For GNU C, if not -traditional,
+ we can define these macros to compute all args only once