]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virfiletest: include linux/falloc.h
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 18 May 2017 13:38:04 +0000 (15:38 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 19 May 2017 12:02:37 +0000 (14:02 +0200)
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 <mprivozn@redhat.com>
tests/virfiletest.c

index 42115c8909edc608b78719d561588c9686bb25e2..8ea07c5ce0e74b5d9179553ec6532ad16d4c0330 100644 (file)
 #include "virfile.h"
 #include "virstring.h"
 
+#ifdef __linux__
+# include <linux/falloc.h>
+#endif
+
 
 #if defined HAVE_MNTENT_H && defined HAVE_GETMNTENT_R
 static int testFileCheckMounts(const char *prefix,