LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File apc-pthread.patch of Package php5-APC (Project spins:invis)

--- config.m4.orig
+++ config.m4
@@ -164,7 +164,7 @@ if test "$PHP_APC_PTHREADRWLOCK" != "no"
 			],
 			[ dnl -Success-
 				PHP_ADD_LIBRARY(pthread)
-				APC_CFLAGS="-D_GNU_SOURCE"
+				APC_CFLAGS="-pthread -D_GNU_SOURCE"
 			],
 			[ dnl -Failure-
 				AC_MSG_WARN([It doesn't appear that pthread rwlocks are supported on your system])
--- apc.h.orig
+++ apc.h
@@ -38,6 +38,10 @@
  * This module defines utilities and helper functions used elsewhere in APC.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 /* Commonly needed C library headers. */
 #include <assert.h>
 #include <errno.h>
@@ -54,10 +58,6 @@
 #include <unistd.h>
 #endif
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include "php.h"
 #include "main/php_streams.h"