diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-02-23 12:38:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-23 12:39:16 +0000 |
commit | 235db83d4c4a18eaa0b183f6ef891e7d2dc12e26 (patch) | |
tree | 8175bddc845744da6879d226797ec9ff9619e707 /clucene | |
parent | ada908ab14b10fd15a0e172809546c5fffc7d952 (diff) |
another problematic _CL_HAVE_GCC_ATOMIC_FUNCTIONS for MacOSX
Diffstat (limited to 'clucene')
-rw-r--r-- | clucene/patches/clucene-gcc-atomics.patch | 11 |
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 |