iliaa Mon Mar 17 17:26:51 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/main streams.c
Log:
MFH
Index: php4/main/streams.c
diff -u php4/main/streams.c:1.125.2.39 php4/main/streams.c:1.125.2.40
--- php4/main/streams.c:1.125.2.39 Mon Mar 17 13:47:29 2003
+++ php4/main/streams.c Mon Mar 17 17:26:51 2003
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: streams.c,v 1.125.2.39 2003/03/17 18:47:29 iliaa Exp $ */
+/* $Id: streams.c,v 1.125.2.40 2003/03/17 22:26:51 iliaa Exp $ */
#define _GNU_SOURCE
#include "php.h"
@@ -1209,7 +1209,11 @@
if (php_stream_stat(src, &ssbuf) == 0) {
/* in the event that the source file is 0 bytes, return 1 to indicate
success
* because opening the file to write had already created a copy */
- if (ssbuf.sb.st_size == 0 && !S_ISFIFO(ssbuf.sb.st_mode)) {
+ if (ssbuf.sb.st_size == 0
+#ifdef S_ISFIFO
+ && !S_ISFIFO(ssbuf.sb.st_mode)
+#endif
+ ) {
return 1;
}
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php