source: projects/specs/trunk/m/mozc/ibus-mozc-0.11.0-fix-compile-w-i386.patch @ 2063

Revision 2063, 856 bytes checked in by iwaim, 14 years ago (diff)

mozc 0.13.499.102-1

RevLine 
[2063]1--- src/base/mutex.cc.orig      2010-05-14 22:31:30.000000000 +0900
2+++ src/base/mutex.cc   2010-05-14 22:36:49.000000000 +0900
3@@ -51,8 +51,12 @@
4 inline int InterlockedCompareExchange(volatile int *target,
5                                       int new_value,
6                                       int old_value) {
7+// chagne required minimum version from 4.1 to 4.4 to avoid
8+// build error for Vine Linux 5 as a workaround.
9+// (it has gcc-4.1.2 but march=i386,
10+//  but __sync_val_compare_and_swap needs cpu >= i486)
11 #if defined(__GNUC__) && \
12-        (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) && \
13+        (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) && \
14         !defined(__arm__)
15   // Use GCC's extention (Note: ARM GCC doesn't have this function.)
16   // http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Atomic-Builtins.html
Note: See TracBrowser for help on using the repository browser.