summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-03-15 10:32:32 +0000
committerFelipe Pena <felipe@php.net>2008-03-15 10:32:32 +0000
commitbbac59aa40471c804a78c2aa52d4fcb9248e7f16 (patch)
treebdceca1162055cf4e29bc1ee4a5f3f1c5c46af2a /main
parent766f62f0264cfb84bf7ee709a6b45a39cafe864a (diff)
downloadphp-git-bbac59aa40471c804a78c2aa52d4fcb9248e7f16.tar.gz
MFB: Fixed bug #44440 (st_blocks undefined under BeOS)
Diffstat (limited to 'main')
-rw-r--r--main/streams/memory.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/streams/memory.c b/main/streams/memory.c
index 1c850e5e1e..442c6b08b8 100644
--- a/main/streams/memory.c
+++ b/main/streams/memory.c
@@ -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