HPUX nss fix.
authorJeremy Allison <jra@samba.org>
Wed, 9 Jan 2002 03:38:31 +0000 (03:38 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 9 Jan 2002 03:38:31 +0000 (03:38 +0000)
Jeremy.
(This used to be commit 1f12e310e5d8b01d3d29132d1bb1f41196165f7f)

source3/nsswitch/nss.h

index a29271529fd817571e7ce8f67441c54877a2ba82..6165e0b24a5543dd46dbce700c13326ad72031ea 100644 (file)
@@ -73,7 +73,24 @@ typedef enum
 #define NSD_MEM_VOLATILE 1
 #define NSD_MEM_DYNAMIC 2
 
 #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
 {
 
 typedef enum
 {
@@ -86,4 +103,3 @@ typedef enum
 #endif
 
 #endif /* _NSSWITCH_NSS_H */
 #endif
 
 #endif /* _NSSWITCH_NSS_H */
-