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:
Michał Mirosław 2022-06-20 20:36:28 +02:00 committed by Andrei Vagin
parent c5142104a2
commit f043cb22af

View file

@ -47,7 +47,9 @@
#define noinline __attribute__((noinline))
#endif
#ifndef __aligned
#define __aligned(x) __attribute__((aligned(x)))
#endif
/*
* Macro to define stack alignment.