aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej Żenczykowski <zenczykowski@gmail.com>2011-11-06 14:33:40 -0800
committermaximilian attems <max@stro.at>2011-12-04 14:42:47 +0100
commit7f47891c1678874cccca66cd25e6a13486c86d78 (patch)
tree871485c2ca19909e5872dcf9a529ca5c95910793
parent731d82caecbc309eea5e719ca0c6dfb03afd34c3 (diff)
downloadklibc-7f47891c1678874cccca66cd25e6a13486c86d78.tar.gz
[klibc] include: [sys/types.h] -> linux/types.h and __aligned_u64
When building klibc 1.5.25 against linux/master (ie. post 3.1) I'm seeing: klibc/generated/include/linux/if_packet.h:176: error: expected specifier-qualifier-list before '__aligned_u64' which seems to come from upstream commits: 0d4691ce112be025019999df5f2a5e00c03f03c2 remotes/linux/master~90^2~408 (origin) 96c131842aab45b5d139d0bcb417796819f5ee92 remotes/linux/master~90^2~169 (change from aligned_u64 to __aligned_u64) and collides with klibc/usr/include/sys/types.h /* Keeps linux/types.h from getting included elsewhere */ #define _LINUX_TYPES_H not defining __aligned_u64 like the kernel's include/linux/types.h does. Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r--usr/include/sys/types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/include/sys/types.h b/usr/include/sys/types.h
index 6780ed1a00e5b..3a4c738a897c2 100644
--- a/usr/include/sys/types.h
+++ b/usr/include/sys/types.h
@@ -100,6 +100,10 @@ typedef uint16_t __sum16;
typedef uint32_t __sum32;
typedef uint64_t __sum64;
+#define __aligned_u64 __u64 __attribute__((aligned(8)))
+#define __aligned_be64 __be64 __attribute__((aligned(8)))
+#define __aligned_le64 __le64 __attribute__((aligned(8)))
+
/*
* Some headers seem to require this...
*/