summaryrefslogtreecommitdiff
path: root/ext
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
commitfcb9e4b2b36f7227b437fb7a66d769713c67100f (patch)
tree87ed8c7b76d4f136f4b3b0fced95871392ecef9d /ext
parent3c63a836cf0dd9c40c6940dcf2572c91a18bdf24 (diff)
downloadphp-git-fcb9e4b2b36f7227b437fb7a66d769713c67100f.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')
-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 fdc1431b87..d59b248958 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 */