cvs: php4 /main streams.c
| From: | Ilia Alshanetsky | Date: | Mon, 28 Oct 2002 12:37:31 +0000 |
| Subject: | cvs: php4 /main streams.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15525@lists.php.net to get a copy of this message | ||
iliaa Mon Oct 28 07:37:31 2002 EDT
Modified files:
/php4/main streams.c
Log:
Fix win32 build.
Index: php4/main/streams.c
diff -u php4/main/streams.c:1.121 php4/main/streams.c:1.122
--- php4/main/streams.c:1.121 Sun Oct 27 22:45:21 2002
+++ php4/main/streams.c Mon Oct 28 07:37:31 2002
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: streams.c,v 1.121 2002/10/28 03:45:21 iliaa Exp $ */
+/* $Id: streams.c,v 1.122 2002/10/28 12:37:31 iliaa Exp $ */
#define _GNU_SOURCE
#include "php.h"
@@ -1638,6 +1638,10 @@
}
/* }}} */
+
+#ifndef S_ISREG
+#define S_ISREG(mode) (((mode)&S_IFMT) == S_IFREG)
+#endif
/* {{{ php_stream_fopen */
PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, char **opened_path,
int options STREAMS_DC TSRMLS_DC)