From 075c32409a3187994afe67a8aed418cb0d042e92 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 4 Apr 2017 16:30:53 +0200 Subject: [PATCH] usb_drv: Add missing definition of __aligned macro This macro is implicitly pulled in by libc-setjmp (via the libc's cdefs.h). However, apparently not all sources include . Unfortunately, for sources that do, this change produces a double-definition warning. We should fix it by removing the dependency from the libc's setjmp. --- repos/dde_linux/src/lib/usb/include/lx_emul.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repos/dde_linux/src/lib/usb/include/lx_emul.h b/repos/dde_linux/src/lib/usb/include/lx_emul.h index e156c2dd5c..f48bb0a548 100644 --- a/repos/dde_linux/src/lib/usb/include/lx_emul.h +++ b/repos/dde_linux/src/lib/usb/include/lx_emul.h @@ -181,6 +181,8 @@ typedef struct { __u8 b[16]; } uuid_le; #include +#define __aligned(N) __attribute__((aligned(N))) + struct __una_u16 { u16 x; } __attribute__((packed)); struct __una_u32 { u32 x; } __attribute__((packed)); struct __una_u64 { u64 x; } __attribute__((packed));