mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
build: Guard against libbsd's version of __aligned.
When trying to build CRIU with libbsd enabled the compilation fails due to duplicate definition of __aligned macro. Other such definitions are already wrapped with #ifndef make __aligned definition consistent and make it easier in the future to use the libbsd features if needed. Signed-off-by: Michał Mirosław <emmir@google.com>
This commit is contained in:
parent
c5142104a2
commit
f043cb22af
1 changed files with 2 additions and 0 deletions
|
|
@ -47,7 +47,9 @@
|
|||
#define noinline __attribute__((noinline))
|
||||
#endif
|
||||
|
||||
#ifndef __aligned
|
||||
#define __aligned(x) __attribute__((aligned(x)))
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Macro to define stack alignment.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue