[PATCH 30/45] include/uapi/asm-generic/shmbuf.h: include fixes
From: Mikko Rapeli
Date: Mon Feb 16 2015 - 18:12:59 EST
Fixes userspace compilation errors like:
error: field âshm_permâ has incomplete type
struct ipc64_perm shm_perm; /* operation perms */
error: unknown type name âsize_tâ
error: unknown type name â__kernel_time_tâ
Signed-off-by: Mikko Rapeli <mikko.rapeli@xxxxxx>
---
include/uapi/asm-generic/shmbuf.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/uapi/asm-generic/shmbuf.h b/include/uapi/asm-generic/shmbuf.h
index 7e9fb2f..24ef152 100644
--- a/include/uapi/asm-generic/shmbuf.h
+++ b/include/uapi/asm-generic/shmbuf.h
@@ -1,7 +1,13 @@
#ifndef __ASM_GENERIC_SHMBUF_H
#define __ASM_GENERIC_SHMBUF_H
+#include <linux/types.h>
#include <asm/bitsperlong.h>
+#include <asm/msgbuf.h>
+
+#ifndef __KERNEL__
+#include <stdlib.h>
+#endif
/*
* The shmid64_ds structure for x86 architecture.
--
2.1.4
--
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/