From c8af3994d76bc5cc3ee8443c1ee366353daea840 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 11 Feb 2024 11:12:15 -0800 Subject: include on all platforms with HAVE_GETSPNAM set, not just SVR4 Matches what we already do in greeter/verify.c Signed-off-by: Alan Coopersmith --- xdm/session.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/xdm/session.c b/xdm/session.c index 5cc667e..356ff0e 100644 --- a/xdm/session.c +++ b/xdm/session.c @@ -132,12 +132,7 @@ extern void endgrent(void); #endif #ifdef HAVE_GETSPNAM -# if defined(SVR4) -# include -# else -extern struct spwd *getspnam(GETSPNAM_ARGS); -extern void endspent(void); -# endif +# include #endif #if defined(CSRG_BASED) || defined(__GLIBC__) # include -- cgit v1.2.3