From: Michal Privoznik Date: Thu, 18 May 2017 13:38:04 +0000 (+0200) Subject: virfiletest: include linux/falloc.h X-Git-Tag: v3.4.0-rc1~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f69dd36bb9df07e2b3e2a341e1cf70578920bea;p=thirdparty%2Flibvirt.git 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 42115c8909..8ea07c5ce0 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,