summaryrefslogtreecommitdiff
path: root/sys-devel/gcc-apple/files/gcc-apple-4.2.1_p5666-darwin8.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel/gcc-apple/files/gcc-apple-4.2.1_p5666-darwin8.patch')
-rw-r--r--sys-devel/gcc-apple/files/gcc-apple-4.2.1_p5666-darwin8.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys-devel/gcc-apple/files/gcc-apple-4.2.1_p5666-darwin8.patch b/sys-devel/gcc-apple/files/gcc-apple-4.2.1_p5666-darwin8.patch
new file mode 100644
index 000000000000..c89acf2c7e00
--- /dev/null
+++ b/sys-devel/gcc-apple/files/gcc-apple-4.2.1_p5666-darwin8.patch
@@ -0,0 +1,13 @@
+--- gcc-5666.3/gcc/libgcov.c.orig 2015-01-21 23:33:54.000000000 +0100
++++ gcc-5666.3/gcc/libgcov.c 2015-01-21 23:36:12.000000000 +0100
+@@ -36,7 +36,10 @@
+
+ /* APPLE LOCAL begin instant off 6414141 */
+ #if defined(__APPLE__) && !defined(__STATIC__) && !defined(__ppc__) && !defined(__ppc64__) && !defined(__arm__)
++/* no vproc.h on 10.4 and below */
++#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
+ #include <vproc.h>
++#endif
+ #if defined(VPROC_HAS_TRANSACTIONS)
+ vproc_transaction_t vproc_transaction_begin(vproc_t virtual_proc) __attribute__((weak));
+ void vproc_transaction_end(vproc_t virtual_proc, vproc_transaction_t handle) __attribute__((weak));