summaryrefslogtreecommitdiff
path: root/src/node_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_file.cc')
-rw-r--r--src/node_file.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_file.cc b/src/node_file.cc
index 04f3f3159d..ed289c40c8 100644
--- a/src/node_file.cc
+++ b/src/node_file.cc
@@ -253,11 +253,13 @@ Local<Object> BuildStatsObject(struct stat * s) {
/* total size, in bytes */
stats->Set(size_symbol, Number::New(s->st_size));
+#ifdef __POSIX__
/* blocksize for filesystem I/O */
stats->Set(blksize_symbol, Integer::New(s->st_blksize));
/* number of blocks allocated */
stats->Set(blocks_symbol, Integer::New(s->st_blocks));
+#endif
/* time of last access */
stats->Set(atime_symbol, NODE_UNIXTIME_V8(s->st_atime));