|
@@ -6,6 +6,8 @@ Subject: [PATCH] OPcache: flock mechanism is obviously linux so force it.
|
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|
|
[Bernd: update for 7.2.12]
|
|
|
+Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
|
|
+[aduskett@gmail.com: Update for 7.3.0]
|
|
|
---
|
|
|
ext/opcache/config.m4 | 34 ++--------------------------------
|
|
|
1 file changed, 2 insertions(+), 32 deletions(-)
|
|
@@ -14,13 +16,13 @@ diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4
|
|
|
index fbb9b21..ffddc8e 100644
|
|
|
--- a/ext/opcache/config.m4
|
|
|
+++ b/ext/opcache/config.m4
|
|
|
-@@ -343,38 +343,8 @@ int main() {
|
|
|
- msg=yes,msg=no,msg=no)
|
|
|
+@@ -341,38 +341,8 @@ int main() {
|
|
|
+ msg=yes],[msg=no],[msg=no])
|
|
|
AC_MSG_RESULT([$msg])
|
|
|
|
|
|
-flock_type=unknown
|
|
|
-AC_MSG_CHECKING("whether flock struct is linux ordered")
|
|
|
--AC_TRY_RUN([
|
|
|
+-AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
|
|
- #include <fcntl.h>
|
|
|
- struct flock lock = { 1, 2, 3, 4, 5 };
|
|
|
- int main() {
|
|
@@ -29,14 +31,14 @@ index fbb9b21..ffddc8e 100644
|
|
|
- }
|
|
|
- return 1;
|
|
|
- }
|
|
|
--], [
|
|
|
+-]])], [
|
|
|
- flock_type=linux
|
|
|
- AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type])
|
|
|
- AC_MSG_RESULT("yes")
|
|
|
--], AC_MSG_RESULT("no") )
|
|
|
+-], [AC_MSG_RESULT("no")], [AC_MSG_RESULT([no])])
|
|
|
-
|
|
|
-AC_MSG_CHECKING("whether flock struct is BSD ordered")
|
|
|
--AC_TRY_RUN([
|
|
|
+-AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
|
|
- #include <fcntl.h>
|
|
|
- struct flock lock = { 1, 2, 3, 4, 5 };
|
|
|
- int main() {
|
|
@@ -45,11 +47,11 @@ index fbb9b21..ffddc8e 100644
|
|
|
- }
|
|
|
- return 1;
|
|
|
- }
|
|
|
--], [
|
|
|
+-]])], [
|
|
|
- flock_type=bsd
|
|
|
- AC_DEFINE([HAVE_FLOCK_BSD], [], [Struct flock is BSD-type])
|
|
|
- AC_MSG_RESULT("yes")
|
|
|
--], AC_MSG_RESULT("no") )
|
|
|
+-], [AC_MSG_RESULT("no")], [AC_MSG_RESULT([no])])
|
|
|
+flock_type=linux
|
|
|
+AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type])
|
|
|
|