Fix aiocb compile warnings on HPUX
[fio.git] / os / os.h
diff --git a/os/os.h b/os/os.h
index 3df7b41be4b6447c73783abf03808b38ca2ee586..2eb38e87afda20dae2b52ebd65d1dfc146247e23 100644 (file)
--- a/os/os.h
+++ b/os/os.h
@@ -32,6 +32,9 @@
 
 #ifdef FIO_HAVE_POSIXAIO
 #include <aio.h>
+#ifndef FIO_OS_HAVE_AIOCB_TYPEDEF
+typedef struct aiocb os_aiocb_t;
+#endif
 #endif
 
 #ifdef FIO_HAVE_SGIO
@@ -187,4 +190,11 @@ static inline unsigned int cpus_online(void)
 }
 #endif
 
+#ifndef FIO_HAVE_GETTID
+static inline int gettid(void)
+{
+       return getpid();
+}
+#endif
+
 #endif