#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
#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
+#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