From: Sascha Schumann Date: Tue, 6 May 2003 13:06:53 +0000 (+0000) Subject: When HAVE_BROKEN_GETCWD is in effect, open() will be called, so we need X-Git-Tag: php-4.3.2RC3~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=648355a4cb2473bff2e07968240c27579b14c8e5;p=php When HAVE_BROKEN_GETCWD is in effect, open() will be called, so we need to include unistd.h. --- diff --git a/main/main.c b/main/main.c index ac312c7163..3219b19ded 100644 --- a/main/main.c +++ b/main/main.c @@ -1552,6 +1552,12 @@ PHPAPI int php_handle_special_queries(TSRMLS_D) } /* }}} */ +#ifdef HAVE_BROKEN_GETCWD +# ifdef HAVE_UNISTD_H +# include +# endif +#endif + /* {{{ php_execute_script */ PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC)