summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_io.h
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-09-07 17:28:29 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-09-07 17:28:29 +0200
commit51272f4217b5961438cf89ac03dc3ab097db8af5 (patch)
tree2c0bde0cf4c974d68e1b3ecb6341c7713e322bea /sapi/phpdbg/phpdbg_io.h
parent585d8642b58a7ff5a64befcbbe5213990963a9f1 (diff)
downloadphp-git-51272f4217b5961438cf89ac03dc3ab097db8af5.tar.gz
Fixed bug #70449 (PHP won't compile on 10.4 and 10.5 because of missing constants)
Diffstat (limited to 'sapi/phpdbg/phpdbg_io.h')
-rw-r--r--sapi/phpdbg/phpdbg_io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg_io.h b/sapi/phpdbg/phpdbg_io.h
index 3e25fc5eeb..fdd579d548 100644
--- a/sapi/phpdbg/phpdbg_io.h
+++ b/sapi/phpdbg/phpdbg_io.h
@@ -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);