]> granicus.if.org Git - php/commitdiff
Fixed bug #44440 (st_blocks undefined under BeOS)
authorFelipe Pena <felipe@php.net>
Sat, 15 Mar 2008 10:28:53 +0000 (10:28 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 15 Mar 2008 10:28:53 +0000 (10:28 +0000)
main/streams/memory.c

index 1c850e5e1ef19c67635c3b1e0c3fcc44132d4694..442c6b08b8dd6fc46700d607c5091f07685fcf4a 100644 (file)
@@ -234,6 +234,9 @@ static int php_stream_memory_stat(php_stream *stream, php_stream_statbuf *ssb TS
 
 #ifndef PHP_WIN32
        ssb->sb.st_blksize = -1;
+#endif
+
+#if !defined(PHP_WIN32) && !defined(__BEOS__)
        ssb->sb.st_blocks = -1;
 #endif