From 4bb884423460d712041c87f353843512300a1c66 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 11 May 2012 12:27:04 +0000 Subject: provide a compatibility version of struct spwd for systems without it git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1690 ef36b2f9-881f-0410-afb5-c4e39611909c --- compat/nss_compat.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'compat/nss_compat.h') diff --git a/compat/nss_compat.h b/compat/nss_compat.h index 74bb979..2588034 100644 --- a/compat/nss_compat.h +++ b/compat/nss_compat.h @@ -1,7 +1,7 @@ /* nss_compat.h - compatibility definitions for NSS functions - Copyright (C) 2010 Arthur de Jong + Copyright (C) 2010, 2012 Arthur de Jong Copyright (C) 2010 Symas Corporation This library is free software; you can redistribute it and/or @@ -148,4 +148,19 @@ struct __netgrent void *nip; /* changed from `service_user *nip' */ }; +/* Define struct spwd if it was not found on the system. */ +#ifndef HAVE_STRUCT_SPWD +struct spwd { + char *sp_namp; + char *sp_pwdp; + long sp_lstchg; + long sp_min; + long sp_max; + long sp_warn; + long sp_inact; + long sp_expire; + unsigned long sp_flag; +}; +#endif /* not HAVE_STRUCT_SPWD */ + #endif /* not COMPAT__NSS_H */ -- cgit v1.2.3