#include "ext/standard/credits.h"
#ifdef PHP_WIN32
#include <io.h>
-#include <fcntl.h>
#include "win32/php_registry.h"
#endif
+
+#if defined(HAVE_FCNTL_H)
+#include <fcntl.h>
+#endif
+
#include "php_syslog.h"
#if PHP_SIGCHILD
}
/* }}} */
-#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)