[SCM] NSS Wrapper Repository - branch master updated

Andreas Schneider asn at samba.org
Fri Dec 20 01:11:00 MST 2013


The branch, master has been updated
       via  55b6717 tests: Fix building nss module on Solaris.
      from  8327732 tests: Add a dummy nss module and load it.

http://gitweb.samba.org/?p=nss_wrapper.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 55b6717906de003c44dbb64a488d98af7cdf493f
Author: Andreas Schneider <asn at samba.org>
Date:   Fri Dec 20 09:10:21 2013 +0100

    tests: Fix building nss module on Solaris.

-----------------------------------------------------------------------

Summary of changes:
 tests/nss_nwrap.c |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/tests/nss_nwrap.c b/tests/nss_nwrap.c
index 5c59022..1e63dce 100644
--- a/tests/nss_nwrap.c
+++ b/tests/nss_nwrap.c
@@ -1,8 +1,28 @@
-#include <nss.h>
+#include "config.h"
+
 #include <pwd.h>
 #include <grp.h>
 
+#if defined(HAVE_NSS_H)
+/* Linux and BSD */
+#include <nss.h>
+
 typedef enum nss_status NSS_STATUS;
+#elif defined(HAVE_NSS_COMMON_H)
+/* Solaris */
+#include <nss_common.h>
+#include <nss_dbdefs.h>
+#include <nsswitch.h>
+
+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
+#else
+# error "No nsswitch support detected"
+#endif
 
 NSS_STATUS _nss_nwrap_setpwent(void);
 NSS_STATUS _nss_nwrap_endpwent(void);


-- 
NSS Wrapper Repository


More information about the samba-cvs mailing list