summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-11-22 20:48:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:33 -0500
commitb823bcbc919d7e4b482c63cbe5b7f99e0bddd5f6 (patch)
tree1f9f1b99428abc843e678267e845ee42734ecffb
parentc9a0720f552719eb77a2c72fc2e942de52fbf1d6 (diff)
downloadsamba-b823bcbc919d7e4b482c63cbe5b7f99e0bddd5f6.tar.gz
samba-b823bcbc919d7e4b482c63cbe5b7f99e0bddd5f6.tar.xz
samba-b823bcbc919d7e4b482c63cbe5b7f99e0bddd5f6.zip
r11867: attempt at fixing the compile issue with nss_winbind.so on HP-UX caused by Solaris specific return codes
-rw-r--r--source/nsswitch/winbind_nss_solaris.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/nsswitch/winbind_nss_solaris.c b/source/nsswitch/winbind_nss_solaris.c
index 64b8b734f17..8076c043e04 100644
--- a/source/nsswitch/winbind_nss_solaris.c
+++ b/source/nsswitch/winbind_nss_solaris.c
@@ -340,6 +340,7 @@ _nss_winbind_group_constr (const char* db_name,
/*****************************************************************
hosts and ipnodes backend
*****************************************************************/
+#if defined(SUNOS5) /* not compatible with HP-UX */
/* this parser is shared between get*byname and get*byaddr, as key type
in request is stored in different locations, I had to provide the
@@ -627,4 +628,5 @@ _nss_winbind_hosts_constr(dummy1, dummy2, dummy3)
sizeof (host_ops) / sizeof (host_ops[0])));
}
-#endif /* SUN_NSS */
+#endif /* defined(SUNOS5) */
+#endif /* defined(HAVE_NSS_COMMON_H) || defined(HPUX) */