1000-fix_membar_producer_link_error_gcc3x.patch 436 B

1234567891011
  1. --- a/ext/standard/php_crypt_r.c
  2. +++ b/ext/standard/php_crypt_r.c
  3. @@ -96,6 +96,8 @@ void _crypt_extended_init_r(void)
  4. InterlockedIncrement(&initialized);
  5. #elif defined(HAVE_SYNC_FETCH_AND_ADD)
  6. __sync_fetch_and_add(&initialized, 1);
  7. +#elif (defined(__GNUC__) && (__GNUC__ == 3))
  8. + initialized = 1;
  9. #elif defined(HAVE_ATOMIC_H) /* Solaris 10 defines atomic API within */
  10. membar_producer();
  11. atomic_add_int(&initialized, 1);