com php-src: Fixed phpdbg build without --enable-zend-signals: Zend/Zend.m4 sapi/phpdbg/phpdbg.h
| From: | Dmitry Stogov | Date: | Mon, 20 Jun 2016 13:32:24 +0000 |
| Subject: | com php-src: Fixed phpdbg build without --enable-zend-signals: Zend/Zend.m4 sapi/phpdbg/phpdbg.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92512@lists.php.net to get a copy of this message | ||
Commit: c622cc4446951044dbef419e3ad59fc90eebd3a1
Author: Dmitry Stogov <dmitry@zend.com> Mon, 20 Jun 2016 16:32:24 +0300
Parents: ad55348e6610bc9465b04cb8e4b57cdbefbe0ac2
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c622cc4446951044dbef419e3ad59fc90eebd3a1
Log:
Fixed phpdbg build without --enable-zend-signals
Changed paths:
M Zend/Zend.m4
M sapi/phpdbg/phpdbg..h
Diff:
diff --git a/Zend/Zend.m4 b/Zend/Zend.m4
index bdeac67...9d3b46a 100644
--- a/Zend/Zend.m4
+++ b/Zend/Zend.m4
@@ -370,10 +370,10 @@ AC_CHECK_FUNCS(mremap)
AC_ARG_ENABLE(zend-signals,
-[ --enable-zend-signals Use zend signal handling],[
+[ --disable-zend-signals whether to enable zend signal handling],[
ZEND_SIGNALS=$enableval
],[
- ZEND_SIGNALS=no
+ ZEND_SIGNALS=yes
])
AC_CHECK_FUNC(sigaction, [
diff --git a/sapi/phpdbg/phpdbg.h b/sapi/phpdbg/phpdbg.h
index c77bc1c..2f95a80 100644
--- a/sapi/phpdbg/phpdbg.h
+++ b/sapi/phpdbg/phpdbg.h
@@ -47,6 +47,9 @@
#include "zend_stream.h"
#ifndef _WIN32
# include "zend_signal.h"
+# if !defined(ZEND_SIGNALS) && defined(HAVE_SIGNAL_H)
+# include <signal.h>
+# endif
#endif
#include "SAPI.h"
#include <fcntl.h>