First snapshot of FIO for Windows
[fio.git] / os / os.h
diff --git a/os/os.h b/os/os.h
index b7fce80c6f7ce0070146a2f3986e15891108f045..95f0ff29e02fad0b8f7ed07b1f1e451c8bbeb1ae 100644 (file)
--- a/os/os.h
+++ b/os/os.h
@@ -2,6 +2,7 @@
 #define FIO_OS_H
 
 #include <sys/types.h>
+#include <pthread.h>
 #include <unistd.h>
 
 #if defined(__linux__)
 #include "os-solaris.h"
 #elif defined(__APPLE__)
 #include "os-mac.h"
+#elif defined(_AIX)
+#include "os-aix.h"
+#elif defined(__CYGWIN__)
+#include "os-windows.h"
 #else
 #error "unsupported os"
 #endif
 #include "../lib/strsep.h"
 #endif
 
+#ifdef MSG_DONTWAIT
+#define OS_MSG_DONTWAIT        MSG_DONTWAIT
+#endif
+
 #ifndef FIO_HAVE_FADVISE
 #define fadvise(fd, off, len, advice)  (0)
 
@@ -147,4 +156,11 @@ static inline long os_random_long(os_random_state_t *rs)
 }
 #endif
 
+#ifndef FIO_HAVE_FS_STAT
+static inline unsigned long long get_fs_size(const char *path)
+{
+       return 0;
+}
+#endif
+
 #endif