Check for linux/falloc.h header file.
[rsync/rsync.git] / rsync.h
diff --git a/rsync.h b/rsync.h
index 99c7d6c..84d1287 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -666,7 +666,9 @@ struct ht_int64_node {
 #endif
 
 #if defined HAVE_FALLOCATE || HAVE_SYS_FALLOCATE
+#ifdef HAVE_LINUX_FALLOC_H
 #include <linux/falloc.h>
+#endif
 #ifdef FALLOC_FL_KEEP_SIZE
 #define SUPPORT_PREALLOCATION 1
 #elif defined HAVE_FTRUNCATE