From f93294975bcac223a8966bfbe34de59a2e77462a Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 7 Nov 2018 13:30:04 +0100 Subject: [PATCH] base-linux: avoid double define of __always_inline This patch fixes the following build problem that occurs on recent GNU/Linux systems: /usr/include/x86_64-linux-gnu/sys/cdefs.h:307:0: error: "__always_inline" redefined ... /usr/include/linux/stddef.h:5:0: note: this is the location of the previous definition The code in 'cdefs.h' does not check if the '__always_inline' is already defined. The patch works around the problem by including the 'sys/cdefs.h' first. --- repos/base-linux/src/lib/syscall/linux_syscalls.h | 1 + 1 file changed, 1 insertion(+) diff --git a/repos/base-linux/src/lib/syscall/linux_syscalls.h b/repos/base-linux/src/lib/syscall/linux_syscalls.h index 1b9a091a2e..ad1745021f 100644 --- a/repos/base-linux/src/lib/syscall/linux_syscalls.h +++ b/repos/base-linux/src/lib/syscall/linux_syscalls.h @@ -44,6 +44,7 @@ #define size_t __SIZE_TYPE__ /* Linux includes */ +#include /* include first to avoid double definition of '__always_inline' */ #include #include #include