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 <setjmp.h>.
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.
This commit is contained in:
Norman Feske 2017-04-04 16:30:53 +02:00 committed by Christian Helmuth
parent e49bb4943e
commit 075c32409a

View File

@ -181,6 +181,8 @@ typedef struct { __u8 b[16]; } uuid_le;
#include <lx_emul/byteorder.h>
#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));