diff options
author | Felipe Pena <felipe@php.net> | 2011-05-20 21:24:51 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2011-05-20 21:24:51 +0000 |
commit | ac6edb41ecb219fa399b9295b457de5c9833b7be (patch) | |
tree | 09856e7d882fc2ee34de7a79ca0ee5f0d10a2ba5 /ext/standard/php_crypt_r.c | |
parent | 9e7ae3b2d0e942b816e3836025456544d6288ac3 (diff) | |
download | php-git-ac6edb41ecb219fa399b9295b457de5c9833b7be.tar.gz |
- Fixed bug #54895 (Fix compiling with older gcc version without need for membar_producer macro)
patch by: mhei at heimpold dot de
Diffstat (limited to 'ext/standard/php_crypt_r.c')
-rw-r--r-- | ext/standard/php_crypt_r.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/php_crypt_r.c b/ext/standard/php_crypt_r.c index 15db3d9b03..cd3746258c 100644 --- a/ext/standard/php_crypt_r.c +++ b/ext/standard/php_crypt_r.c @@ -94,7 +94,7 @@ void _crypt_extended_init_r(void) if (!initialized) { #ifdef PHP_WIN32 InterlockedIncrement(&initialized); -#elif (defined(__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2)) +#elif (defined(__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR__ >= 1)) __sync_fetch_and_add(&initialized, 1); #elif defined(HAVE_ATOMIC_H) /* Solaris 10 defines atomic API within */ membar_producer(); |