From: Sascha Schumann Date: Tue, 6 May 2003 13:18:38 +0000 (+0000) Subject: Real fix for open() issue on Solaris X-Git-Tag: php-4.3.2RC3~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62f0ea795415ef84402c8c59d8d8425ab662564e;p=php Real fix for open() issue on Solaris --- diff --git a/main/main.c b/main/main.c index 3219b19ded..081806dde8 100644 --- a/main/main.c +++ b/main/main.c @@ -64,9 +64,13 @@ #include "ext/standard/credits.h" #ifdef PHP_WIN32 #include -#include #include "win32/php_registry.h" #endif + +#if defined(HAVE_FCNTL_H) +#include +#endif + #include "php_syslog.h" #if PHP_SIGCHILD @@ -1552,12 +1556,6 @@ 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)