diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-11 11:12:15 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-11 11:49:07 -0800 |
commit | c8af3994d76bc5cc3ee8443c1ee366353daea840 (patch) | |
tree | 74b57a32c44a73058f3f41dc5a10566baffe247b | |
parent | 7e8a581cda4aaac7e1d6af3d0000a0d03816adc3 (diff) |
include <shadow.h> on all platforms with HAVE_GETSPNAM set, not just SVR4
Matches what we already do in greeter/verify.c
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xdm/session.c | 7 |
1 files changed, 1 insertions, 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 <shadow.h> -# else -extern struct spwd *getspnam(GETSPNAM_ARGS); -extern void endspent(void); -# endif +# include <shadow.h> #endif #if defined(CSRG_BASED) || defined(__GLIBC__) # include <pwd.h> |