X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos.h;h=a14d7f0c0333152ed6663d895d787fb95d7e1f18;hp=2e4764e18f4ab6c021c3171827bd7323b52ef8bf;hb=67bf982340d95ca98098ea050b54b4c7adb116c0;hpb=78c1111eacdb594e0488d5adc508091fc2a3af88 diff --git a/os/os.h b/os/os.h index 2e4764e1..a14d7f0c 100644 --- a/os/os.h +++ b/os/os.h @@ -44,11 +44,7 @@ enum { #error "unsupported os" #endif -#ifdef FIO_HAVE_LIBAIO -#include -#endif - -#ifdef FIO_HAVE_POSIXAIO +#ifdef CONFIG_POSIXAIO #include #ifndef FIO_OS_HAVE_AIOCB_TYPEDEF typedef struct aiocb os_aiocb_t; @@ -60,7 +56,7 @@ typedef struct aiocb os_aiocb_t; #include #endif -#ifndef FIO_HAVE_STRSEP +#ifdef CONFIG_STRSEP #include "../lib/strsep.h" #endif @@ -116,12 +112,6 @@ typedef unsigned long os_cpu_mask_t; #define OS_RAND_MAX RAND_MAX #endif -#ifdef FIO_HAVE_CLOCK_MONOTONIC -#define FIO_TIMER_CLOCK CLOCK_MONOTONIC -#else -#define FIO_TIMER_CLOCK CLOCK_REALTIME -#endif - #ifndef FIO_HAVE_RAWBIND #define fio_lookup_raw(dev, majdev, mindev) 1 #endif @@ -142,8 +132,8 @@ typedef unsigned long os_cpu_mask_t; #define FIO_MAX_JOBS 2048 #endif -#ifndef FIO_OS_HAVE_SOCKLEN_T -typedef socklen_t fio_socklen_t; +#ifndef CONFIG_SOCKLEN_T +typedef unsigned int socklen_t; #endif #ifndef FIO_OS_HAS_CTIME_R