summaryrefslogtreecommitdiff
path: root/ext/standard/php_crypt_r.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-09-17 00:01:45 +0000
committerFelipe Pena <felipe@php.net>2011-09-17 00:01:45 +0000
commitad9c9ed5293cc7805853aff954699a49d4cd5b9f (patch)
tree6e866e9d8bf90052f7adec849b4ec793af416241 /ext/standard/php_crypt_r.c
parentee026944fda1ac0df92453608367d41276bd623c (diff)
downloadphp-git-ad9c9ed5293cc7805853aff954699a49d4cd5b9f.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.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 e8b482ab6b..45ffea9cef 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__) && !defined(__hpux) && (__GNUC__ > 4 || \
+#elif (defined(__GNUC__) && !defined(__hpux) && !defined(__hppa__) && (__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 */