From 0a3f6b9b489fda547650083252906a881740af2b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 9 Jan 2002 03:38:31 +0000 Subject: HPUX nss fix. Jeremy. (This used to be commit 1f12e310e5d8b01d3d29132d1bb1f41196165f7f) --- source3/nsswitch/nss.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'source3/nsswitch') 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 + +#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 */ - -- cgit