diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-08-08 15:53:27 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-08-08 15:53:27 +0200 |
commit | 0c60524190b15fbc583db44b8cb4e3fddac9549c (patch) | |
tree | fc5271bc2a0ca5bd3645ed582542450de372f21c /sapi/phpdbg/phpdbg_utils.c | |
parent | b7aac1f5f2d1f072fa52b0bbedce1ac7d20ae789 (diff) | |
download | php-git-0c60524190b15fbc583db44b8cb4e3fddac9549c.tar.gz |
Fixed bug #70214 (FASYNC possibly not defined)
Diffstat (limited to 'sapi/phpdbg/phpdbg_utils.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_utils.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/sapi/phpdbg/phpdbg_utils.c b/sapi/phpdbg/phpdbg_utils.c index d0a24986a9..e9b30c07b1 100644 --- a/sapi/phpdbg/phpdbg_utils.c +++ b/sapi/phpdbg/phpdbg_utils.c @@ -26,11 +26,16 @@ #include "phpdbg_utils.h" #include "ext/standard/php_string.h" -#if defined(HAVE_SYS_IOCTL_H) -# include "sys/ioctl.h" -# ifndef GWINSZ_IN_SYS_IOCTL -# include <termios.h> -# endif +/* FASYNC under Solaris */ +#ifdef HAVE_SYS_FILE_H +# include <sys/file.h> +#endif + +#ifdef HAVE_SYS_IOCTL_H +# include "sys/ioctl.h" +# ifndef GWINSZ_IN_SYS_IOCTL +# include <termios.h> +# endif #endif ZEND_EXTERN_MODULE_GLOBALS(phpdbg); @@ -347,7 +352,7 @@ PHPDBG_API int phpdbg_get_terminal_width(void) /* {{{ */ } /* }}} */ PHPDBG_API void phpdbg_set_async_io(int fd) { -#ifndef _WIN32 +#if !defined(_WIN32) && defined(FASYNC) int flags; fcntl(STDIN_FILENO, F_SETOWN, getpid()); flags = fcntl(STDIN_FILENO, F_GETFL); |