From 648355a4cb2473bff2e07968240c27579b14c8e5 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Tue, 6 May 2003 13:06:53 +0000 Subject: [PATCH] When HAVE_BROKEN_GETCWD is in effect, open() will be called, so we need to include unistd.h. --- main/main.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.50.1