From 2f69dd36bb9df07e2b3e2a341e1cf70578920bea Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: May 19 2017 12:02:37 +0000 Subject: virfiletest: include linux/falloc.h On systems with older glibc including fcntl.h for getting FALLOC_FL_PUNCH_HOLE defined is not enough. We must also include linux/falloc.h. Signed-off-by: Michal Privoznik --- diff --git a/tests/virfiletest.c b/tests/virfiletest.c index 42115c8..8ea07c5 100644 --- a/tests/virfiletest.c +++ b/tests/virfiletest.c @@ -27,6 +27,10 @@ #include "virfile.h" #include "virstring.h" +#ifdef __linux__ +# include +#endif + #if defined HAVE_MNTENT_H && defined HAVE_GETMNTENT_R static int testFileCheckMounts(const char *prefix,