summaryrefslogtreecommitdiff
path: root/os/windows/posix.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2013-01-23 17:21:41 -0700
committerJens Axboe <axboe@kernel.dk>2013-01-23 17:21:41 -0700
commit1f81991ed356dd7257aef2c715ba9a24d9af93a5 (patch)
tree5c1f11411a428d2c18e54a352aaf4536a4f2ebf9 /os/windows/posix.h
parent36744c7511b71defe1c60666ae175ec8a5ed22c8 (diff)
downloadfio-1f81991ed356dd7257aef2c715ba9a24d9af93a5.tar.gz
fio-1f81991ed356dd7257aef2c715ba9a24d9af93a5.tar.bz2
Fix compile warnings on Windows
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'os/windows/posix.h')
-rw-r--r--os/windows/posix.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/os/windows/posix.h b/os/windows/posix.h
new file mode 100644
index 00000000..cb89cf6e
--- /dev/null
+++ b/os/windows/posix.h
@@ -0,0 +1,10 @@
+#ifndef FIO_WINDOWS_POSIX_H
+#define FIO_WINDOWS_POSIX_H
+
+typedef off_t off64_t;
+typedef int clockid_t;
+
+extern int clock_gettime(clockid_t clock_id, struct timespec *tp);
+extern int inet_aton(const char *, struct in_addr *);
+
+#endif