]> granicus.if.org Git - php/commitdiff
When HAVE_BROKEN_GETCWD is in effect, open() will be called, so we need
authorSascha Schumann <sas@php.net>
Tue, 6 May 2003 13:06:53 +0000 (13:06 +0000)
committerSascha Schumann <sas@php.net>
Tue, 6 May 2003 13:06:53 +0000 (13:06 +0000)
to include unistd.h.

main/main.c

index ac312c71632422836b4dd24fd15789c76550d87c..3219b19dedb84533d943aab273f3fa52385cfd26 100644 (file)
@@ -1552,6 +1552,12 @@ PHPAPI int php_handle_special_queries(TSRMLS_D)
 }
 /* }}} */
 
+#ifdef HAVE_BROKEN_GETCWD
+# ifdef HAVE_UNISTD_H
+#  include <unistd.h>
+# endif
+#endif
+
 /* {{{ php_execute_script
  */
 PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC)