From: Felipe Pena Date: Fri, 20 May 2011 21:24:51 +0000 (+0000) Subject: - Fixed bug #54895 (Fix compiling with older gcc version without need for membar_prod... X-Git-Tag: php-5.4.0alpha1~150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=964f44a280c399ee908daa45a7764f46823a713b;p=php - Fixed bug #54895 (Fix compiling with older gcc version without need for membar_producer macro) patch by: mhei at heimpold dot de --- 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();