diff options
author | jklos <jklos> | 2011-10-06 05:34:00 +0000 |
---|---|---|
committer | jklos <jklos> | 2011-10-06 05:34:00 +0000 |
commit | 67af9bbff2bbeb6f06035f3307871118f2b04358 (patch) | |
tree | a4d9209e2f142c2886bed6a585711ba455790eea /lang/php53/patches | |
parent | 31b2a809202ef03a2780e63d5f0e9e0050f5f020 (diff) | |
download | pkgsrc-67af9bbff2bbeb6f06035f3307871118f2b04358.tar.gz |
Atomic operations via gcc are not supported on many archs. Allow them only
on amd64, powerpc, i386 and alpha.
Diffstat (limited to 'lang/php53/patches')
-rw-r--r-- | lang/php53/patches/patch-as | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/php53/patches/patch-as b/lang/php53/patches/patch-as new file mode 100644 index 00000000000..c037a728a70 --- /dev/null +++ b/lang/php53/patches/patch-as @@ -0,0 +1,14 @@ +$NetBSD: patch-as,v 1.1 2011/10/06 05:34:00 jklos Exp $ + +--- ext/standard/php_crypt_r.c.orig 2011-10-06 05:25:16.000000000 +0000 ++++ ext/standard/php_crypt_r.c +@@ -94,7 +94,8 @@ void _crypt_extended_init_r(void) + if (!initialized) { + #ifdef PHP_WIN32 + InterlockedIncrement(&initialized); +-#elif (defined(__GNUC__) && !defined(__hpux) && (__GNUC__ > 4 || \ ++#elif (defined(__GNUC__) && (defined(__amd64__) || defined(__alpha__) || \ ++ defined(__i386__) || defined(__powerpc__)) && (__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 */ |