The headers reported here are the post-munging headers as exposed in linux-libc-dev. As a result they differ from the upstream commits. This include was introduced by the commit below:
commit 3162d92dfb79a0b5fc03380b8819fa5f870ebf1e
Author: Dave Kleikamp <email address hidden>
Date: Mon Feb 8 11:51:05 2010 +0000
Now for the kernel this is fine as the linux/types.h is asm protected also. For userspace not so much. Looking over all of the consumers of the types which are added they are all __ASSEMBLY__ protected, so it seems entirly reasonable to move this whole assemblage into the #ifndef __ASSEMBLY__ section.
The headers reported here are the post-munging headers as exposed in linux-libc-dev. As a result they differ from the upstream commits. This include was introduced by the commit below:
commit 3162d92dfb79a0b 5fc03380b8819fa 5f870ebf1e
Author: Dave Kleikamp <email address hidden>
Date: Mon Feb 8 11:51:05 2010 +0000
powerpc: Extended ptrace interface
Which introduced this fragment:
+#ifdef __KERNEL__
+#include <linux/types.h>
+#else
+#include <stdint.h>
+#endif
+
#ifndef __ASSEMBLY__
Now for the kernel this is fine as the linux/types.h is asm protected also. For userspace not so much. Looking over all of the consumers of the types which are added they are all __ASSEMBLY__ protected, so it seems entirly reasonable to move this whole assemblage into the #ifndef __ASSEMBLY__ section.