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@xxxxxxxxxx> --- sys-utils/fallocate.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/sys-utils/fallocate.c b/sys-utils/fallocate.c index d1f43c2..fd4d2a9 100644 --- a/sys-utils/fallocate.c +++ b/sys-utils/fallocate.c @@ -37,7 +37,11 @@ # 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" -- 1.7.3 -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html