summaryrefslogtreecommitdiff
path: root/ext/standard/php_crypt_r.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-07-23 01:08:24 +0000
committerFelipe Pena <felipe@php.net>2011-07-23 01:08:24 +0000
commitb2558d5f358e4672aa934b728d1d746678cc54e2 (patch)
tree1661f7d0f83e1a5cc2378f56cde1d16f74c45500 /ext/standard/php_crypt_r.c
parentfb5da94c1bdb1cf69d0ba77fb372b84724339d98 (diff)
downloadphp-git-b2558d5f358e4672aa934b728d1d746678cc54e2.tar.gz
- Disable __sync_fetch_and_add for HPUX for now, gcc seems not provide __sync_fetch_and_add_4 for all targets
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 69c48610f3..e8b482ab6b 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 || \
+#elif (defined(__GNUC__) && !defined(__hpux) && (__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 */