If linux/falloc.h does not exist, the build system still enables the
fallocate util, but ultimately fails when it tries to include the
header and use a define from it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
# include <sys/syscall.h>
#endif
-#include <linux/falloc.h> /* for FALLOC_FL_* flags */
+#ifdef HAVE_LINUX_FALLOC_H
+# include <linux/falloc.h> /* for FALLOC_FL_* flags */
+#else
+# define FALLOC_FL_KEEP_SIZE 1
+#endif
#include "nls.h"
#include "strtosize.h"