From: Érico Nogueira Date: Thu, 11 Nov 2021 00:17:48 +0000 (-0300) Subject: debuginfod: fix compilation on platforms without X-Git-Tag: elfutils-0.187~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=90b9e91b961b794a4e58ab76d9191a5e7343584e;p=thirdparty%2Felfutils.git debuginfod: fix compilation on platforms without "system.h" only declares the error() function, so it needs to be in an 'extern "C"' block, otherwise linking fails. Since we are here, use quotes for "system.h" header, since it's a local header, not a system one. Signed-off-by: Érico Nogueira --- diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog index f06d3ee3e..822bd637a 100644 --- a/debuginfod/ChangeLog +++ b/debuginfod/ChangeLog @@ -1,3 +1,7 @@ +2021-11-10 Érico N. Rolim + + * debuginfod.cxx: include "system.h" under 'extern "C"' block. + 2021-11-05 Frank Ch. Eigler PR28430 diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx index 521cb529b..764e7b947 100644 --- a/debuginfod/debuginfod.cxx +++ b/debuginfod/debuginfod.cxx @@ -33,11 +33,11 @@ extern "C" { #include "printversion.h" +#include "system.h" } #include "debuginfod.h" #include -#include #include #ifdef __GNUC__