mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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 <mprivozn@redhat.com>
This commit is contained in:
parent
adbd1626cb
commit
2f69dd36bb
@ -27,6 +27,10 @@
|
||||
#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,
|
||||
|
Loading…
Reference in New Issue
Block a user