cvs: php4(PHP_4_3) /main main.c
| From: | Sascha Schumann | Date: | Tue, 06 May 2003 13:06:53 +0000 |
| Subject: | cvs: php4(PHP_4_3) /main main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20738@lists.php.net to get a copy of this message | ||
sas Tue May 6 09:06:53 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/main main.c
Log:
When HAVE_BROKEN_GETCWD is in effect, open() will be called, so we need
to include unistd.h.
Index: php4/main/main.c
diff -u php4/main/main.c:1.512.2.25 php4/main/main.c:1.512.2.26
--- php4/main/main.c:1.512.2.25 Mon Apr 28 17:00:41 2003
+++ php4/main/main.c Tue May 6 09:06:53 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: main.c,v 1.512.2.25 2003/04/28 21:00:41 sniper Exp $ */
+/* $Id: main.c,v 1.512.2.26 2003/05/06 13:06:53 sas Exp $ */
/* {{{ includes
*/
@@ -1551,6 +1551,12 @@
return 0;
}
/* }}} */
+
+#ifdef HAVE_BROKEN_GETCWD
+# ifdef HAVE_UNISTD_H
+# include <unistd.h>
+# endif
+#endif
/* {{{ php_execute_script
*/