binject: ctl cleanups
[fio.git] / os / os.h
diff --git a/os/os.h b/os/os.h
index b7fce80c6f7ce0070146a2f3986e15891108f045..c8f517b6edc8c8199f1451afbdaf524bc1d926c2 100644 (file)
--- a/os/os.h
+++ b/os/os.h
@@ -14,6 +14,8 @@
 #include "os-solaris.h"
 #elif defined(__APPLE__)
 #include "os-mac.h"
+#elif defined(_AIX)
+#include "os-aix.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 +153,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