summaryrefslogtreecommitdiff
path: root/lang/g95/patches
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2013-09-23 17:56:32 +0000
committerasau <asau@pkgsrc.org>2013-09-23 17:56:32 +0000
commit8a2b83405c4b1dbc4acd6885e520bef4c66e0e57 (patch)
tree600a885bc740591266359ca92c99b97ef54cbe28 /lang/g95/patches
parentf373e3d587f080e98807f98fcb9f0e5e414bc4a7 (diff)
downloadpkgsrc-8a2b83405c4b1dbc4acd6885e520bef4c66e0e57.tar.gz
Do not create duplicate definitions. From FreeBSD ports.
This fixes package on FreeBSD.
Diffstat (limited to 'lang/g95/patches')
-rw-r--r--lang/g95/patches/patch-gcc_config_freebsd-spec.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/lang/g95/patches/patch-gcc_config_freebsd-spec.h b/lang/g95/patches/patch-gcc_config_freebsd-spec.h
new file mode 100644
index 00000000000..675efa8b81f
--- /dev/null
+++ b/lang/g95/patches/patch-gcc_config_freebsd-spec.h
@@ -0,0 +1,23 @@
+$NetBSD: patch-gcc_config_freebsd-spec.h,v 1.1 2013/09/23 17:56:32 asau Exp $
+
+Do not create duplicate definitions.
+From FreeBSD ports.
+
+--- ../gcc-4.1.2/gcc/config/freebsd-spec.h.orig 2005-07-20 13:12:58.000000000 +0200
++++ ../gcc-4.1.2/gcc/config/freebsd-spec.h 2012-06-20 15:57:35.000000000 +0200
+@@ -51,11 +51,13 @@
+ #define FBSD_TARGET_OS_CPP_BUILTINS() \
+ do \
+ { \
+- if (FBSD_MAJOR == 9) \
++ if (FBSD_MAJOR == 10) \
++ builtin_define ("__FreeBSD__=10"); \
++ else if (FBSD_MAJOR == 9) \
+ builtin_define ("__FreeBSD__=9"); \
+ else if (FBSD_MAJOR == 8) \
+ builtin_define ("__FreeBSD__=8"); \
+- if (FBSD_MAJOR == 7) \
++ else if (FBSD_MAJOR == 7) \
+ builtin_define ("__FreeBSD__=7"); \
+ else if (FBSD_MAJOR == 6) \
+ builtin_define ("__FreeBSD__=6"); \