summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/nss.h
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2001-12-11 20:20:30 +0000
committerHerb Lewis <herb@samba.org>2001-12-11 20:20:30 +0000
commitb9dbb38bf2d1fbe1ca5d0aa53b89f76844d6209c (patch)
treeb1448e3034c960c074f1ce37761ec3dcf24be5de /source/nsswitch/nss.h
parent6688781331e046adc77783792fc009cda7c8b5b8 (diff)
downloadsamba-b9dbb38bf2d1fbe1ca5d0aa53b89f76844d6209c.tar.gz
samba-b9dbb38bf2d1fbe1ca5d0aa53b89f76844d6209c.tar.xz
samba-b9dbb38bf2d1fbe1ca5d0aa53b89f76844d6209c.zip
sync with 2.2
added multiple include protection added IRIX defines
Diffstat (limited to 'source/nsswitch/nss.h')
-rw-r--r--source/nsswitch/nss.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/source/nsswitch/nss.h b/source/nsswitch/nss.h
index 6995305b93f..a29271529fd 100644
--- a/source/nsswitch/nss.h
+++ b/source/nsswitch/nss.h
@@ -1,3 +1,5 @@
+#ifndef _NSSWITCH_NSS_H
+#define _NSSWITCH_NSS_H
/*
Unix SMB/Netbios implementation.
Version 2.0
@@ -46,6 +48,31 @@ typedef nss_status_t NSS_STATUS;
typedef enum nss_status NSS_STATUS;
+#elif HAVE_NS_API_H
+
+/* SGI IRIX */
+
+/* following required to prevent warnings of double definition
+ * of datum from ns_api.h
+*/
+#ifdef DATUM
+#define _DATUM_DEFINED
+#endif
+
+#include <ns_api.h>
+
+typedef enum
+{
+ NSS_STATUS_SUCCESS=NS_SUCCESS,
+ NSS_STATUS_NOTFOUND=NS_NOTFOUND,
+ NSS_STATUS_UNAVAIL=NS_UNAVAIL,
+ NSS_STATUS_TRYAGAIN=NS_TRYAGAIN
+} NSS_STATUS;
+
+#define NSD_MEM_STATIC 0
+#define NSD_MEM_VOLATILE 1
+#define NSD_MEM_DYNAMIC 2
+
#else /* Nothing's defined. Neither gnu nor sun */
typedef enum
@@ -58,3 +85,5 @@ typedef enum
#endif
+#endif /* _NSSWITCH_NSS_H */
+