From 5edcb01f1d8d521c819d45df1f1bb87697252130 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 17 Mar 2025 14:38:26 -0700 Subject: [PATCH] pppd/session: Fixed building with GCC 15 Fixed building with GCC 15 which defaults to C23 and find conflicting declration of getspnam() here with the one provided by shadow.h (extern struct spwd *getspnam (const char *__name);) Fixes ../../ppp-2.5.2/pppd/session.c: In function 'session_start': ../../ppp-2.5.2/pppd/session.c:185:18: error: conflicting types for 'getspnam'; have 'struct spwd *(void)' 185 | struct spwd *getspnam(); | ^~~~~~~~ Signed-off-by: Khem Raj --- pppd/session.c | 1 - 1 file changed, 1 deletion(-) --- a/pppd/session.c +++ b/pppd/session.c @@ -182,7 +182,6 @@ session_start(const int flags, const cha char *cbuf; #ifdef HAVE_SHADOW_H struct spwd *spwd; - struct spwd *getspnam(); long now = 0; #endif /* #ifdef HAVE_SHADOW_H */ #endif /* #ifdef PPP_WITH_PAM */