diff options
author | Felipe Pena <felipe@php.net> | 2011-11-15 20:33:26 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2011-11-15 20:33:26 +0000 |
commit | 3d190388382e64e12e7cf501952c98f4e8f71ef8 (patch) | |
tree | 9e5a53171a36177a30e0f89f452de1a78e244b20 /ext/standard/php_crypt_r.c | |
parent | 32c4c239c0c499708287c8e9a472823c56e5b3de (diff) | |
download | php-git-3d190388382e64e12e7cf501952c98f4e8f71ef8.tar.gz |
- Fixed bug #55874 (GCC does not provide __sync_fetch_and_add on some archs)
patch by: klightspeed at netspace dot net dot au
Diffstat (limited to 'ext/standard/php_crypt_r.c')
-rw-r--r-- | ext/standard/php_crypt_r.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/standard/php_crypt_r.c b/ext/standard/php_crypt_r.c index 45ffea9cef..20868984c0 100644 --- a/ext/standard/php_crypt_r.c +++ b/ext/standard/php_crypt_r.c @@ -94,8 +94,7 @@ void _crypt_extended_init_r(void) if (!initialized) { #ifdef PHP_WIN32 InterlockedIncrement(&initialized); -#elif (defined(__GNUC__) && !defined(__hpux) && !defined(__hppa__) && (__GNUC__ > 4 || \ - (__GNUC__ == 4 && (__GNUC_MINOR__ > 1 || (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ > 1))))) +#elif defined(HAVE_SYNC_FETCH_AND_ADD) __sync_fetch_and_add(&initialized, 1); #elif defined(HAVE_ATOMIC_H) /* Solaris 10 defines atomic API within */ membar_producer(); |