summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-03-27 02:12:21 +0000
committerChris Wilson <chris+github@qwirx.com>2011-03-27 02:12:21 +0000
commit15dfee03ad6424f60fa4c5a8a2873401777e7131 (patch)
tree895ad7a3be0dd16d359a212a8a60fc2befe6f2ac /lib
parentaadd8c0c5ec686db303b7774974c91d52001dfec (diff)
Detect whether we have sys/file.h and don't include it if not, fixes MSVC compile issue.
Diffstat (limited to 'lib')
-rw-r--r--lib/raidfile/RaidFileWrite.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/raidfile/RaidFileWrite.cpp b/lib/raidfile/RaidFileWrite.cpp
index 976d0bb4..504ac141 100644
--- a/lib/raidfile/RaidFileWrite.cpp
+++ b/lib/raidfile/RaidFileWrite.cpp
@@ -18,7 +18,10 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/file.h>
+
+#ifdef HAVE_SYS_FILE_H
+# include <sys/file.h>
+#endif
#include <stdio.h>
#include <string.h>