chiark / gitweb /
build-sys: Add configure check for linux/btrfs.h
[elogind.git] / src / readahead / readahead-collect.c
index 658c230d65e985cbdd43a753ac3f2a515562110d..5d37bb75f3c3da7b11f507906afd892d3d6899ad 100644 (file)
 #include <sys/mman.h>
 #include <linux/fs.h>
 #include <linux/fiemap.h>
-#include <linux/btrfs.h>
 #include <sys/ioctl.h>
 #include <sys/vfs.h>
 #include <getopt.h>
 #include <sys/inotify.h>
 #include <math.h>
 
+#ifdef HAVE_LINUX_BTRFS_H
+#include <linux/btrfs.h>
+#endif
+
 #ifdef HAVE_FANOTIFY_INIT
 #include <sys/fanotify.h>
 #endif