]> granicus.if.org Git - php/commitdiff
- Disable __sync_fetch_and_add for HPUX for now, gcc seems not provide __sync_fetch_a...
authorFelipe Pena <felipe@php.net>
Sat, 23 Jul 2011 01:08:24 +0000 (01:08 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 23 Jul 2011 01:08:24 +0000 (01:08 +0000)
ext/standard/php_crypt_r.c

index 69c48610f3895292d409488131229aa73378ed57..e8b482ab6b7d8b100406e5be55830398cda22480 100644 (file)
@@ -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 */