autofs_dev-ioctl.h is included by both the kernel module and the userland tools, and it includes two kernel include files. The compile worked if you had kernel headers installed but failed otherwise.
We could also push these includes into the kernel module entirely, but then we'd have to work harder to keep autofs userland and kernel versions in sync, so I chose to just #ifdef it out. --- include/linux/auto_dev-ioctl.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/linux/auto_dev-ioctl.h b/include/linux/auto_dev-ioctl.h index 91a7739..c943c1e 100644 --- a/include/linux/auto_dev-ioctl.h +++ b/include/linux/auto_dev-ioctl.h @@ -10,8 +10,11 @@ #ifndef _LINUX_AUTO_DEV_IOCTL_H #define _LINUX_AUTO_DEV_IOCTL_H +/* This file is shared by both user and kernel space */ +#ifdef __KERNEL__ #include <linux/string.h> #include <linux/types.h> +#endif /* __KERNEL__ */ #define AUTOFS_DEVICE_NAME "autofs" -- 1.6.0.3 _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs