summaryrefslogtreecommitdiff
path: root/ext/standard/php_crypt_r.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-07-19 22:12:13 +0000
committerFelipe Pena <felipe@php.net>2011-07-19 22:12:13 +0000
commite97b0d7522aa66decf4ee20dd67f5fac44474dde (patch)
tree693d388360f907881165f8914070fb4e4c31ac91 /ext/standard/php_crypt_r.c
parentfcf8f2bcaf1cd506424e8ce6d93ec57a54c404a0 (diff)
downloadphp-git-e97b0d7522aa66decf4ee20dd67f5fac44474dde.tar.gz
- Fixed bug #55231 (Unsatisfied symbols __sync_fetch_and_add_4)
Diffstat (limited to 'ext/standard/php_crypt_r.c')
-rw-r--r--ext/standard/php_crypt_r.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/php_crypt_r.c b/ext/standard/php_crypt_r.c
index 2d71710cfd..69c48610f3 100644
--- a/ext/standard/php_crypt_r.c
+++ b/ext/standard/php_crypt_r.c
@@ -94,7 +94,8 @@ void _crypt_extended_init_r(void)
if (!initialized) {
#ifdef PHP_WIN32
InterlockedIncrement(&initialized);
-#elif (defined(__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR__ >= 1))
+#elif (defined(__GNUC__) && (__GNUC__ > 4 || \
+ (__GNUC__ == 4 && (__GNUC_MINOR__ > 1 || (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ > 1)))))
__sync_fetch_and_add(&initialized, 1);
#elif defined(HAVE_ATOMIC_H) /* Solaris 10 defines atomic API within */
membar_producer();