[PATCH] headers, ncp: Add missing #include to <linux/ncp_fs.h> foruserland

From: Ben Hutchings
Date: Mon Aug 08 2011 - 09:30:36 EST


<linux/ncp_fs.h> uses size_t, defined for userland by <stddef.h>.

Signed-off-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx>
---
include/linux/ncp_fs.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/linux/ncp_fs.h b/include/linux/ncp_fs.h
index e13eefe..e220c8a 100644
--- a/include/linux/ncp_fs.h
+++ b/include/linux/ncp_fs.h
@@ -16,6 +16,10 @@
#include <linux/ipx.h>
#include <linux/ncp_no.h>

+#ifndef __KERNEL__
+#include <stddef.h>
+#endif
+
/*
* ioctl commands
*/
--
1.7.5.4


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/