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