[PATCH] headers, sysctl: Add missing #include to <linux/sysctl.h>for userland

From: Ben Hutchings
Date: Mon Aug 08 2011 - 09:31:41 EST

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

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

diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
index 11684d9..4c732b7 100644
--- a/include/linux/sysctl.h
+++ b/include/linux/sysctl.h
@@ -26,6 +26,10 @@
#include <linux/types.h>
#include <linux/compiler.h>

+#ifndef __KERNEL__
+#include <stddef.h>
struct completion;

#define CTL_MAXNAME 10 /* how many path components do we allow in a

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/