From 4b357e15876b730343db08719c877fdb45b6ad42 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Thu, 15 Aug 2013 11:50:57 -0400 Subject: build-sys: Add configure check for linux/btrfs.h btrfs.h was added to uapi in Linux 3.9. To fix building with older header versions this adds a configure check for the header and re-adds btrfs definitions to missing.h which was removed in bed2e820 along with two other ioctls used by gpt-auto-generator. [ Apparently, btrfs.h was only added recently: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=55e301fd57a6239ec14b91a1cf2e70b3dd135194 let's re-add it for now -- kay ] --- src/readahead/readahead-collect.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/readahead') diff --git a/src/readahead/readahead-collect.c b/src/readahead/readahead-collect.c index 658c230d65..5d37bb75f3 100644 --- a/src/readahead/readahead-collect.c +++ b/src/readahead/readahead-collect.c @@ -38,13 +38,16 @@ #include #include #include -#include #include #include #include #include #include +#ifdef HAVE_LINUX_BTRFS_H +#include +#endif + #ifdef HAVE_FANOTIFY_INIT #include #endif -- cgit v1.2.3-54-g00ecf