summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clucene/patches/clucene-gcc-atomics.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/clucene/patches/clucene-gcc-atomics.patch b/clucene/patches/clucene-gcc-atomics.patch
index d4b47b22cc7b..819e9a7d7a3e 100644
--- a/clucene/patches/clucene-gcc-atomics.patch
+++ b/clucene/patches/clucene-gcc-atomics.patch
@@ -18,3 +18,14 @@
return __sync_sub_and_fetch(theInteger, 1);
#else
SCOPED_LOCK_MUTEX(theInteger->THIS_LOCK)
+--- src/shared/CLucene/LuceneThreads.h 2012-02-23 12:36:28.388299322 +0000
++++ src/shared/CLucene/LuceneThreads.h 2012-02-23 12:37:23.131885433 +0000
+@@ -70,7 +70,7 @@
+ void NotifyAll();
+ };
+
+- #ifdef _CL_HAVE_GCC_ATOMIC_FUNCTIONS
++ #if ( __GNUC__ > 4 ) || (( __GNUC__ == 4) && ( __GNUC_MINOR__ >= 4 ))
+ #define _LUCENE_ATOMIC_INT uint32_t
+ #define _LUCENE_ATOMIC_INT_SET(x,v) x=v
+ #define _LUCENE_ATOMIC_INT_GET(x) x