From 5abe0811b880208600f646356549b7e5cad89060 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 1 Dec 2023 23:04:43 +0000 Subject: [PATCH] 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. --- src/pwunconv.c | 1 + src/vipw.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pwunconv.c b/src/pwunconv.c index b8624359..454bc1a1 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 f387b4ab..ab1c8116 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"