[PATCH:xproto 3/3] Fix getpwuid_r and getpwnam_r use for NetBSD and DragonFly.

Thomas Klausner wiz at NetBSD.org
Fri Jul 17 01:24:19 PDT 2015


From: Joerg Sonnenberger <joerg at NetBSD.org>

Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
---
 Xos_r.h.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Xos_r.h.in b/Xos_r.h.in
index 2e24fcc..bc45755 100644
--- a/Xos_r.h.in
+++ b/Xos_r.h.in
@@ -325,7 +325,7 @@ static __inline__ void _Xpw_copyPasswd(_Xgetpwparams p)
   (_Xos_processUnlock), \
   (p).pwp )
 
-#elif !defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(__APPLE__)
+#elif !defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(__APPLE__) && !defined(__NetBSD__) && !defined(__DragonFly__)
 # define X_NEEDS_PWPARAMS
 typedef struct {
   struct passwd pws;
-- 
2.4.5



More information about the xorg-devel mailing list