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

Revision v02 of 2 in this series.

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

[PATCH 19/45] rds.h: include stdint.h in userspace

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

Fixes compilation error:

linux/rds.h:96:2: error: unknown type name ‘uint8_t’

Signed-off-by: Mikko Rapeli <redacted>
---
 include/uapi/linux/rds.h | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/include/uapi/linux/rds.h b/include/uapi/linux/rds.h
index 9195095..7ff0c70 100644
--- a/include/uapi/linux/rds.h
+++ b/include/uapi/linux/rds.h
@@ -34,7 +34,11 @@
 #ifndef _LINUX_RDS_H
 #define _LINUX_RDS_H
 
+#ifdef __KERNEL__
 #include <linux/types.h>
+#else
+#include <stdint.h>
+#endif
 
 #define RDS_IB_ABI_VERSION		0x301
 
-- 
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