diff options
Diffstat (limited to 'swoole-el5.patch')
-rw-r--r-- | swoole-el5.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/swoole-el5.patch b/swoole-el5.patch deleted file mode 100644 index ea36d74..0000000 --- a/swoole-el5.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff -up swoole-1.7.2/config.m4.old swoole-1.7.2/config.m4 ---- swoole-1.7.2/config.m4.old 2014-05-30 11:19:35.000000000 +0200 -+++ swoole-1.7.2/config.m4 2014-05-30 11:20:26.000000000 +0200 -@@ -245,6 +245,7 @@ if test "$PHP_SWOOLE" != "no"; then - AC_CHECK_LIB(c, accept4, AC_DEFINE(SW_USE_ACCEPT4, 1, [have accept4])) - AC_CHECK_LIB(c, signalfd, AC_DEFINE(HAVE_SIGNALFD, 1, [have signalfd])) - AC_CHECK_LIB(c, daemon, AC_DEFINE(HAVE_DAEMON, 1, [have daemon])) -+ AC_CHECK_LIB(c, mkostemp, AC_DEFINE(HAVE_MKOSTEMP, 1, [have mkostemp])) - AC_CHECK_LIB(pthread, pthread_spin_lock, AC_DEFINE(HAVE_SPINLOCK, 1, [have pthread_spin_lock])) - AC_CHECK_LIB(rt, clock_gettime, AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [have clock_gettime])) - -diff -up swoole-1.7.2/src/network/TaskWorker.c.old swoole-1.7.2/src/network/TaskWorker.c ---- swoole-1.7.2/src/network/TaskWorker.c.old 2014-05-30 11:21:10.000000000 +0200 -+++ swoole-1.7.2/src/network/TaskWorker.c 2014-05-30 11:23:18.000000000 +0200 -@@ -43,7 +43,11 @@ int swTaskWorker_large_pack(swEventData - { - swPackage_task pkg; - memcpy(pkg.tmpfile, SW_TASK_TMP_FILE, sizeof(SW_TASK_TMP_FILE)); -+#ifdef HAVE_MKOSTEMP - int tpm_fd = mkostemp(pkg.tmpfile, O_WRONLY); -+#else -+ int tpm_fd = mkstemp(pkg.tmpfile); -+#endif - if (tpm_fd < 0) - { - swWarn("mkdtemp() failed. Error: %s[%d]", strerror(errno), errno); |