Include nss.h if present or define enough values to allow client access to
[import/samba-cvsimport.git] / source / include / includes.h
index 1400b2f07e6f8c66bd57044b9612f13b0de75155..4a760b86f57633ba8ef3821ca540d649d9a983e0 100644 (file)
@@ -935,4 +935,19 @@ extern int DEBUGLEVEL;
 
 #define MAX_SEC_CTX_DEPTH 8    /* Maximum number of security contexts */
 
+#ifdef HAVE_NSS_H
+#include <nss.h>
+#else
+
+/* Minimal needed to compile.. */
+
+enum nss_status {
+       NSS_STATUS_SUCCESS,
+       NSS_STATUS_NOTFOUND,
+       NSS_STATUS_UNAVAIL
+};
+
+#endif
+
 #endif /* _INCLUDES_H */
+