From: Ben Hutchings <ben@decadent.org.uk>
To: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] headers, sysctl: Add missing #include to <linux/sysctl.h> for userland
Date: Mon, 08 Aug 2011 14:31:36 +0100 [thread overview]
Message-ID: <1312810296.2591.1155.camel@deadeye> (raw)
<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
reply other threads:[~2011-08-08 13:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1312810296.2591.1155.camel@deadeye \
--to=ben@decadent.org.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®