X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos-linux.h;h=d5c3f76e03fb40afe8c3807f0ded8620f50b1d1e;hp=3bf6bd97fbd69a806f3c5948652669e78dc804ba;hb=52ad4b94056b594b0fa1012467f944804a8241db;hpb=25dfa848abbb6c35b4d45fabd5a8e82cb77fb285 diff --git a/os/os-linux.h b/os/os-linux.h index 3bf6bd97..d5c3f76e 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -50,6 +50,9 @@ * 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