[packages] php5: fix compile with older gcc
This fix work around the membar_producer link error which can be seen on backfire for brcm-2.4. git-svn-id: svn://svn.openwrt.org/openwrt/packages@27834 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
688a82d20f
commit
0b516de46e
@ -0,0 +1,11 @@
|
||||
--- 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(__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR__ >= 1))
|
||||
__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);
|
Loading…
x
Reference in New Issue
Block a user