From eece28d29c910374a5ead93cccdc1ae105587e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Date: Mon, 20 Jun 2022 20:36:28 +0200 Subject: [PATCH] build: Guard against libbsd's version of `__aligned`. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/common/compiler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/common/compiler.h b/include/common/compiler.h index bd3de01df..1c9d3db8d 100644 --- a/include/common/compiler.h +++ b/include/common/compiler.h @@ -47,7 +47,9 @@ #define noinline __attribute__((noinline)) #endif +#ifndef __aligned #define __aligned(x) __attribute__((aligned(x))) +#endif /* * Macro to define stack alignment.