iliaa           Mon Mar 17 17:25:56 2003 EDT

  Modified files:              
    /php4/main/streams  streams.c 
  Log:
  Win32 build fix.
  
  
Index: php4/main/streams/streams.c
diff -u php4/main/streams/streams.c:1.9 php4/main/streams/streams.c:1.10
--- php4/main/streams/streams.c:1.9     Mon Mar 17 13:32:15 2003
+++ php4/main/streams/streams.c Mon Mar 17 17:25:55 2003
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: streams.c,v 1.9 2003/03/17 18:32:15 iliaa Exp $ */
+/* $Id: streams.c,v 1.10 2003/03/17 22:25:55 iliaa Exp $ */
 
 #define _GNU_SOURCE
 #include "php.h"
@@ -1168,7 +1168,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

Reply via email to