summaryrefslogtreecommitdiff
path: root/source3/nsswitch/nss.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-09 03:38:31 +0000
committerJeremy Allison <jra@samba.org>2002-01-09 03:38:31 +0000
commit0a3f6b9b489fda547650083252906a881740af2b (patch)
treec78afa1ce9f1b94c120d76222acf1f586cbb5b53 /source3/nsswitch/nss.h
parentd2687a00e1fe374128a7ad5707f1f7e62d8512d9 (diff)
downloadsamba-0a3f6b9b489fda547650083252906a881740af2b.tar.gz
samba-0a3f6b9b489fda547650083252906a881740af2b.tar.bz2
samba-0a3f6b9b489fda547650083252906a881740af2b.zip
HPUX nss fix.
Jeremy. (This used to be commit 1f12e310e5d8b01d3d29132d1bb1f41196165f7f)
Diffstat (limited to 'source3/nsswitch/nss.h')
-rw-r--r--source3/nsswitch/nss.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/source3/nsswitch/nss.h b/source3/nsswitch/nss.h
index a29271529f..6165e0b24a 100644
--- a/source3/nsswitch/nss.h
+++ b/source3/nsswitch/nss.h
@@ -73,7 +73,24 @@ typedef enum
#define NSD_MEM_VOLATILE 1
#define NSD_MEM_DYNAMIC 2
-#else /* Nothing's defined. Neither gnu nor sun */
+#elif defined(HPUX)
+/* HP-UX 11 */
+
+#include "nsswitch/hp_nss_common.h"
+#include "nsswitch/hp_nss_dbdefs.h"
+#include <nsswitch.h>
+
+#ifndef _HAVE_TYPEDEF_NSS_STATUS
+#define _HAVE_TYPEDEF_NSS_STATUS
+typedef nss_status_t NSS_STATUS;
+
+#define NSS_STATUS_SUCCESS NSS_SUCCESS
+#define NSS_STATUS_NOTFOUND NSS_NOTFOUND
+#define NSS_STATUS_UNAVAIL NSS_UNAVAIL
+#define NSS_STATUS_TRYAGAIN NSS_TRYAGAIN
+#endif /* HPUX */
+
+#else /* Nothing's defined. Neither gnu nor sun nor hp */
typedef enum
{
@@ -86,4 +103,3 @@ typedef enum
#endif
#endif /* _NSSWITCH_NSS_H */
-