summaryrefslogtreecommitdiff
path: root/devel/tbb/files/patch-include-tbb-tbb_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/tbb/files/patch-include-tbb-tbb_config.h')
-rw-r--r--devel/tbb/files/patch-include-tbb-tbb_config.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/tbb/files/patch-include-tbb-tbb_config.h b/devel/tbb/files/patch-include-tbb-tbb_config.h
new file mode 100644
index 000000000000..18b9fda12ab3
--- /dev/null
+++ b/devel/tbb/files/patch-include-tbb-tbb_config.h
@@ -0,0 +1,13 @@
+--- include/tbb/tbb_config.h.orig 2014-08-26 13:28:59.000000000 +0200
++++ include/tbb/tbb_config.h 2014-09-10 20:19:15.000000000 +0200
+@@ -481,6 +481,10 @@
+ However these functions are not defined anywhere. It seems that this problem was fixed later on
+ and RHEL got an updated version of gcc 4.1.2. **/
+ #define __TBB_GCC_64BIT_ATOMIC_BUILTINS_BROKEN 1
++#elif __TBB_x86_32 && __TBB_GCC_VERSION == 40201 && !__clang__ && __FreeBSD__
++ /** Symbol '__sync_val_compare_and_swap_8' not defined
++ on FreeBSD 8.4/i386 and 9.2/i386 with base gcc **/
++ #define __TBB_GCC_64BIT_ATOMIC_BUILTINS_BROKEN 1
+ #endif
+
+ #if __GNUC__ && __TBB_x86_64 && __INTEL_COMPILER == 1200