summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli_server.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-11-10 18:21:55 +0100
committerAnatol Belski <ab@php.net>2014-11-10 23:30:14 +0100
commit940e69147ec127e44e8eb66d9bab6d3de136e4c9 (patch)
tree55362cb5b9163be8076ec4d3c2b6e5a80a54ab1a /sapi/cli/php_cli_server.c
parentc3471cc1c9ce58a9c1dd4abbbf2dd72a760ea46b (diff)
downloadphp-git-940e69147ec127e44e8eb66d9bab6d3de136e4c9.tar.gz
fix var usage only when unistd.h available
Diffstat (limited to 'sapi/cli/php_cli_server.c')
-rw-r--r--sapi/cli/php_cli_server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c
index 9612352b00..49680cede4 100644
--- a/sapi/cli/php_cli_server.c
+++ b/sapi/cli/php_cli_server.c
@@ -259,7 +259,9 @@ static php_cli_server_http_response_status_code_pair template_map[] = {
{ 501, "<h1>%s</h1><p>Request method not supported.</p>" }
};
+#if HAVE_UNISTD_H
static int php_cli_output_is_tty = OUTPUT_NOT_CHECKED;
+#endif
static size_t php_cli_server_client_send_through(php_cli_server_client *client, const char *str, size_t str_len);
static php_cli_server_chunk *php_cli_server_chunk_heap_new_self_contained(size_t len);