diff options
-rw-r--r-- | lang/gnat/files/patch-gcc-config-freebsd-spec.h | 13 | ||||
-rw-r--r-- | lang/gnat/files/patch-gcc-config.gcc | 11 |
2 files changed, 24 insertions, 0 deletions
diff --git a/lang/gnat/files/patch-gcc-config-freebsd-spec.h b/lang/gnat/files/patch-gcc-config-freebsd-spec.h new file mode 100644 index 0000000..90d80e8 --- /dev/null +++ b/lang/gnat/files/patch-gcc-config-freebsd-spec.h @@ -0,0 +1,13 @@ +--- gcc/config/freebsd-spec.h.orig Sun May 1 21:04:41 2005 ++++ gcc/config/freebsd-spec.h Wed Nov 23 23:45:24 2005 +@@ -51,7 +51,9 @@ + #define FBSD_TARGET_OS_CPP_BUILTINS() \ + do \ + { \ +- if (FBSD_MAJOR == 6) \ ++ if (FBSD_MAJOR == 7) \ ++ builtin_define ("__FreeBSD__=7"); \ ++ else if (FBSD_MAJOR == 6) \ + builtin_define ("__FreeBSD__=6"); \ + else if (FBSD_MAJOR == 5) \ + builtin_define ("__FreeBSD__=5"); \ diff --git a/lang/gnat/files/patch-gcc-config.gcc b/lang/gnat/files/patch-gcc-config.gcc new file mode 100644 index 0000000..5bf75de --- /dev/null +++ b/lang/gnat/files/patch-gcc-config.gcc @@ -0,0 +1,11 @@ +--- gcc/config.gcc.orig Mon Apr 25 21:05:19 2005 ++++ gcc/config.gcc Wed Nov 23 23:42:51 2005 +@@ -406,6 +406,8 @@ + tm_defines="${tm_defines} FBSD_MAJOR=5" ;; + *-*-freebsd6 | *-*-freebsd[6].*) + tm_defines="${tm_defines} FBSD_MAJOR=6" ;; ++ *-*-freebsd7 | *-*-freebsd[7].*) ++ tm_defines="${tm_defines} FBSD_MAJOR=7" ;; + *) + echo 'Please update *-*-freebsd* in gcc/config.gcc' + exit 1 |