From: Anatol Belski Date: Mon, 10 Nov 2014 17:21:55 +0000 (+0100) Subject: fix var usage only when unistd.h available X-Git-Tag: PRE_NATIVE_TLS_MERGE~130^2~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=940e69147ec127e44e8eb66d9bab6d3de136e4c9;p=php fix var usage only when unistd.h available --- 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, "

%s

Request method not supported.

" } }; +#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);