diff options
author | Ian Kent <raven@themaw.net> | 2009-04-01 02:24:45 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 19:59:23 +0400 |
commit | 79955898f961a870cbcc58f6ae13f3741a909da5 (patch) | |
tree | f1b1110446e7df4382f23eddd874ee875e4ed26d /include/linux/auto_fs.h | |
parent | 8f63aaa8b9239475fc580d4450f1141496655305 (diff) | |
download | linux-79955898f961a870cbcc58f6ae13f3741a909da5.tar.xz |
autofs4: fix kernel includes
autofs_dev-ioctl.h is included by both the kernel module and user space tools
and it includes two kernel header files. Compiles work if the kernel headers
are installed but fail otherwise.
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/auto_fs.h')
-rw-r--r-- | include/linux/auto_fs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/auto_fs.h b/include/linux/auto_fs.h index c21e5972a3e8..63265852b7d1 100644 --- a/include/linux/auto_fs.h +++ b/include/linux/auto_fs.h @@ -17,11 +17,13 @@ #ifdef __KERNEL__ #include <linux/fs.h> #include <linux/limits.h> +#include <linux/types.h> +#include <linux/ioctl.h> +#else #include <asm/types.h> +#include <sys/ioctl.h> #endif /* __KERNEL__ */ -#include <linux/ioctl.h> - /* This file describes autofs v3 */ #define AUTOFS_PROTO_VERSION 3 |