diff options
Diffstat (limited to 'sapi/phpdbg/phpdbg_io.h')
-rw-r--r-- | sapi/phpdbg/phpdbg_io.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_io.h b/sapi/phpdbg/phpdbg_io.h index 3e25fc5eeb..8bafc0c999 100644 --- a/sapi/phpdbg/phpdbg_io.h +++ b/sapi/phpdbg/phpdbg_io.h @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2015 The PHP Group | + | Copyright (c) 1997-2016 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -21,6 +21,11 @@ #include "phpdbg.h" +/* Older versions of glibc <= 2.3.0 and <= OS X 10.5 do not have this constant defined */ +#ifndef AI_NUMERICSERV +#define AI_NUMERICSERV 0 +#endif + PHPDBG_API int phpdbg_consume_stdin_line(char *buf); PHPDBG_API int phpdbg_consume_bytes(int sock, char *ptr, int len, int tmo); |