summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/nss_wrapper/nss_wrapper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c
index ebf61f2fb4..ee65350208 100644
--- a/lib/nss_wrapper/nss_wrapper.c
+++ b/lib/nss_wrapper/nss_wrapper.c
@@ -34,6 +34,10 @@
#ifdef _SAMBA_BUILD_
+/* defining this gives us the posix getpwnam_r() calls on solaris
+ Thanks to heimdal for this */
+#define _POSIX_PTHREAD_SEMANTICS
+
#define NSS_WRAPPER_NOT_REPLACE
#include "../replace/replace.h"
#include "system/passwd.h"