X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos-linux.h;h=d5c3f76e03fb40afe8c3807f0ded8620f50b1d1e;hb=d3b70f32bd8aa8c1ed1fff25c9c08b20370e0847;hp=9f547fffe635ad0f652b1baa6a579032bdacc801;hpb=b11e4ccf7b3d24e8e1d0a779aa6735bbce85b291;p=fio.git diff --git a/os/os-linux.h b/os/os-linux.h index 9f547fff..d5c3f76e 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -34,7 +34,6 @@ #define FIO_HAVE_RAWBIND #define FIO_HAVE_BLKTRACE #define FIO_HAVE_STRSEP -#define FIO_HAVE_FALLOCATE #define FIO_HAVE_POSIXAIO_FSYNC #define FIO_HAVE_PSHARED_MUTEX #define FIO_HAVE_CL_SIZE @@ -45,12 +44,16 @@ #define FIO_HAVE_BINJECT #define FIO_HAVE_CLOCK_MONOTONIC #define FIO_HAVE_GETTID +#define FIO_USE_GENERIC_INIT_RANDOM_STATE /* * Can only enable this for newer glibcs, or the header and defines are * missing */ #if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 6 +#define FIO_HAVE_FALLOCATE +#endif +#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 8 #define FIO_HAVE_LINUX_FALLOCATE #endif