1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-16 20:33:58 +02:00
openwrt-packages/lang/php7/patches/1000-fix_membar_producer_link_error_gcc3x.patch
Michael Heimpold c6d45a041e php7: restructure patches
- Add some more patches from Debian
- Rename existing ones (our own patches starts with prefix 1000+)

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2016-09-03 21:51:23 +02:00

12 lines
436 B
Diff

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