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
commit964f44a280c399ee908daa45a7764f46823a713b (patch)
treea198e079dc16e8e9bbaa2fe33f6bdd000a7ac67d /ext/standard/php_crypt_r.c
parent30f19bd52434736daf5ea8a5b8ee74f9d676a4fc (diff)
downloadphp-git-964f44a280c399ee908daa45a7764f46823a713b.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 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();