summaryrefslogtreecommitdiff
path: root/ext/standard/php_crypt_r.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-05-20 21:24:51 +0000
committerFelipe Pena <felipe@php.net>2011-05-20 21:24:51 +0000
commitf7e6e6cedfc506457e941dc58084f5745e3af4c8 (patch)
tree0edd839531d265722b4ba99751d06286d9a69c90 /ext/standard/php_crypt_r.c
parent6f3c7a8b7016323dfe7f794e8dd29b49293b225d (diff)
downloadphp-git-f7e6e6cedfc506457e941dc58084f5745e3af4c8.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/php_crypt_r.c b/ext/standard/php_crypt_r.c
index c6700d6618..d263269537 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();