projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix aiocb compile warnings on HPUX
[fio.git]
/
os
/
os.h
diff --git
a/os/os.h
b/os/os.h
index 4bbdd623a987c174122b2577b2899332605a0a0c..2eb38e87afda20dae2b52ebd65d1dfc146247e23 100644
(file)
--- a/
os/os.h
+++ b/
os/os.h
@@
-18,6
+18,8
@@
#include "os-mac.h"
#elif defined(_AIX)
#include "os-aix.h"
#include "os-mac.h"
#elif defined(_AIX)
#include "os-aix.h"
+#elif defined(__hpux)
+#include "os-hpux.h"
#elif defined(__CYGWIN__)
#include "os-windows.h"
#else
#elif defined(__CYGWIN__)
#include "os-windows.h"
#else
@@
-30,6
+32,9
@@
#ifdef FIO_HAVE_POSIXAIO
#include <aio.h>
#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
#endif
#ifdef FIO_HAVE_SGIO
@@
-178,4
+183,18
@@
static inline unsigned long long get_fs_size(const char *path)
}
#endif
}
#endif
+#ifndef FIO_HAVE_CPU_ONLINE_SYSCONF
+static inline unsigned int cpus_online(void)
+{
+ return sysconf(_SC_NPROCESSORS_ONLN);
+}
+#endif
+
+#ifndef FIO_HAVE_GETTID
+static inline int gettid(void)
+{
+ return getpid();
+}
+#endif
+
#endif
#endif