* [PATCH] headers, sysctl: Add missing #include to <linux/sysctl.h> for userland
@ 2011-08-08 13:31 Ben Hutchings
0 siblings, 0 replies; only message in thread
From: Ben Hutchings @ 2011-08-08 13:31 UTC (permalink / raw)
To: LKML
<linux/sysctl.h> uses size_t, defined for userland by <stddef.h>.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
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>
+#endif
+
struct completion;
#define CTL_MAXNAME 10 /* how many path components do we allow in a
--
1.7.5.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-08 13:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-08 13:31 [PATCH] headers, sysctl: Add missing #include to <linux/sysctl.h> for userland Ben Hutchings
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).