summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-09-26 18:09:20 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-09-26 11:50:10 +0200
commit968da5f890a978f482f56f9eaff0c56a0d52980c (patch)
tree3de5ca3f6424fd237b285e85b71aaaf332ba202b /nsswitch
parent128fb54ab4feb0c665f438f56dca5f734e355be1 (diff)
downloadsamba-968da5f890a978f482f56f9eaff0c56a0d52980c.tar.gz
nsswitch: Add waf tests for solaris special cases
These are in configure.in for autoconf. Found in the config.h comparison on the smbtorture4 build. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Sep 26 11:50:10 CEST 2012 on sn-devel-104
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/wscript_configure16
1 files changed, 16 insertions, 0 deletions
diff --git a/nsswitch/wscript_configure b/nsswitch/wscript_configure
index 7d6ea82879e..3048f48c242 100644
--- a/nsswitch/wscript_configure
+++ b/nsswitch/wscript_configure
@@ -4,3 +4,19 @@ conf.CHECK_HEADERS('nss.h nss_common.h ns_api.h')
conf.CHECK_HEADERS('security/pam_appl.h security/pam_modules.h pam/pam_modules.h', together=True)
conf.CHECK_FUNCS_IN('pam_start', 'pam', checklibc=True, headers='security/pam_appl.h')
+
+# Solaris 10 does have new member in nss_XbyY_key
+conf.CHECK_STRUCTURE_MEMBER('union nss_XbyY_key', 'ipnode.af_family',
+ define='HAVE_NSS_XBYY_KEY_IPNODE',
+ headers='nss_dbdefs.h')
+
+# Solaris has some extra fields in struct passwd that need to be
+# initialised otherwise nscd crashes.
+
+conf.CHECK_STRUCTURE_MEMBER('struct passwd', 'pw_comment',
+ define='HAVE_PASSWD_PW_COMMENT',
+ headers='pwd.h')
+
+conf.CHECK_STRUCTURE_MEMBER('struct passwd', 'pw_age',
+ define='HAVE_PASSWD_PW_AGE',
+ headers='pwd.h')