From 4c4d0a029dd4fd2b509f724b5166b3ff99222d2b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 22 Mar 2010 18:40:44 +1100 Subject: build: fixed nss_wrapper on solaris solaris has different getpwnam_r syntax --- lib/nss_wrapper/nss_wrapper.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/nss_wrapper') 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" -- cgit