From: Sergei Trofimovich Date: Fri, 1 Dec 2023 23:04:43 +0000 (+0000) Subject: src: add missing declaration of `getdef_bool` X-Git-Tag: 4.15.0-rc1~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5abe0811b880208600f646356549b7e5cad89060;p=thirdparty%2Fshadow.git src: add missing declaration of `getdef_bool` Upcoming `gcc-14` enabled a few warnings into errors, like `-Wimplicit-function-declaration`. This caused `shadow` build to fail as: pwunconv.c: In function 'main': pwunconv.c:132:13: error: implicit declaration of function 'getdef_bool' [-Wimplicit-function-declaration] 132 | if (getdef_bool("USE_TCB")) { | ^~~~~~~~~~~ The change adds missing include headers. --- diff --git a/src/pwunconv.c b/src/pwunconv.c index b8624359d..454bc1a11 100644 --- a/src/pwunconv.c +++ b/src/pwunconv.c @@ -18,6 +18,7 @@ #include #include #include "defines.h" +#include "getdef.h" #include "nscd.h" #include "sssd.h" #include "prototypes.h" diff --git a/src/vipw.c b/src/vipw.c index f387b4ab0..ab1c81164 100644 --- a/src/vipw.c +++ b/src/vipw.c @@ -29,6 +29,7 @@ #include "alloc.h" #include "defines.h" +#include "getdef.h" #include "groupio.h" #include "nscd.h" #include "sssd.h"