[PATCH 31/45] asm-generic/sembuf.h: include asm/posix_types.h and asm/ipcbuf.h

From: Mikko Rapeli
Date: Mon Feb 16 2015 - 18:12:41 EST


Fixes userspace compilation errors like:

error: field âmsg_permâ has incomplete type
struct ipc64_perm msg_perm;
error: unknown type name â__kernel_ulong_tâ

Signed-off-by: Mikko Rapeli <mikko.rapeli@xxxxxx>
---
include/uapi/asm-generic/sembuf.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/uapi/asm-generic/sembuf.h b/include/uapi/asm-generic/sembuf.h
index 4cb2c13..17d523f 100644
--- a/include/uapi/asm-generic/sembuf.h
+++ b/include/uapi/asm-generic/sembuf.h
@@ -2,6 +2,8 @@
#define __ASM_GENERIC_SEMBUF_H

#include <asm/bitsperlong.h>
+#include <asm/posix_types.h>
+#include <asm/ipcbuf.h>

/*
* The semid64_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/