summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-22 18:40:44 +1100
committerAndrew Tridgell <tridge@samba.org>2010-03-24 15:50:50 +1100
commit4c4d0a029dd4fd2b509f724b5166b3ff99222d2b (patch)
tree57aabc4e92da9a45c47a4951abfd0d919977d70c /lib
parentfd2bc081381eb24bdbb82d0b1b0fbf0ae12f250a (diff)
downloadsamba-4c4d0a029dd4fd2b509f724b5166b3ff99222d2b.tar.gz
samba-4c4d0a029dd4fd2b509f724b5166b3ff99222d2b.tar.bz2
samba-4c4d0a029dd4fd2b509f724b5166b3ff99222d2b.zip
build: fixed nss_wrapper on solaris
solaris has different getpwnam_r syntax
Diffstat (limited to 'lib')
-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"