The FALLOC_FL_KEEP_SIZE and FALLOC_FL_PUNCH_HOLE are part of bits/fcntl-linux.h, and one should prefer use of libc rather than kernel header linux/falloc.h when possible. Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- sys-utils/fallocate.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys-utils/fallocate.c b/sys-utils/fallocate.c index 6a87673..9fa1e58 100644 --- a/sys-utils/fallocate.c +++ b/sys-utils/fallocate.c @@ -36,8 +36,10 @@ # include <sys/syscall.h> #endif -#ifdef HAVE_LINUX_FALLOC_H -# include <linux/falloc.h> /* for FALLOC_FL_* flags */ +#ifndef HAVE_LINUX_FALLOC_H +# ifndef FALLOC_FL_KEEP_SIZE /* FALLOC_FL_* should be part of */ +# include <linux/falloc.h> /* bits/fcntl-linux.h that is */ +# endif /* included by fcntl.h */ #endif #ifndef FALLOC_FL_KEEP_SIZE -- 1.8.5.2 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html