X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos.h;h=2eb38e87afda20dae2b52ebd65d1dfc146247e23;hp=3df7b41be4b6447c73783abf03808b38ca2ee586;hb=e97c14423a5688d7adfb342c16363c263cb741f9;hpb=c00a22894b82ff53b42c1e741a7b4828199a1388 diff --git a/os/os.h b/os/os.h index 3df7b41b..2eb38e87 100644 --- a/os/os.h +++ b/os/os.h @@ -32,6 +32,9 @@ #ifdef FIO_HAVE_POSIXAIO #include +#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