mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
25 lines
560 B
Plaintext
25 lines
560 B
Plaintext
$NetBSD: patch-ae,v 1.4 2006/01/09 13:13:53 joerg Exp $
|
|
|
|
--- clients/uil/UilDB.c.orig 2005-11-25 10:43:27.000000000 +0100
|
|
+++ clients/uil/UilDB.c
|
|
@@ -79,8 +79,17 @@ static char rcsid[] = "$XConsortium: Uil
|
|
#include <unistd.h>
|
|
#endif
|
|
|
|
-
|
|
-
|
|
+#if defined(__NetBSD__)
|
|
+#include <sys/param.h>
|
|
+# if __NetBSD_Version__ >= 299001000 /* NetBSD 2.99.10 has getpw*_r*/
|
|
+# if !defined(_POSIX_THREAD_SAFE_FUNCTIONS)
|
|
+# define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
|
|
+# endif
|
|
+# else
|
|
+# define XNO_MTSAFE_PWDAPI
|
|
+# endif
|
|
+#endif
|
|
+
|
|
|
|
#include "UilDefI.h"
|
|
|