Thread (1 message) 1 message, 1 author, 2015-02-16
STALE4160d

Revision v02 of 2 in this series.

Revisions (2)
  1. v2 [diff vs current]
  2. v02 current

[PATCH 27/45] include/uapi/linux/sysctl.h: include stdlib.h in userspace

From: Mikko Rapeli <hidden>
Date: 2015-02-16 23:07:46
Also in: lkml
Subsystem: the rest · Maintainer: Linus Torvalds

Fixes userspace compilation error:

error: unknown type name ‘size_t’

Signed-off-by: Mikko Rapeli <redacted>
---
 include/uapi/linux/sysctl.h | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/include/uapi/linux/sysctl.h b/include/uapi/linux/sysctl.h
index 43aaba1..b7b344f 100644
--- a/include/uapi/linux/sysctl.h
+++ b/include/uapi/linux/sysctl.h
@@ -26,6 +26,10 @@
 #include <linux/types.h>
 #include <linux/compiler.h>
 
+#ifndef __KERNEL__
+#include <stdlib.h>
+#endif
+
 struct completion;
 
 #define CTL_MAXNAME 10		/* how many path components do we allow in a
-- 
2.1.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help