pkgsrc/x11/motif/patches/patch-clients_uil_UilDB.c
ryoon 2bd5253513 Import motif-2.3.4 as x11/motif.
The industry standard user interface toolkit for the X Window System.
This is released under LGPL 2.1.
2012-11-10 17:10:10 +00:00

22 lines
573 B
C

$NetBSD: patch-clients_uil_UilDB.c,v 1.1 2012/11/10 17:10:10 ryoon Exp $
--- clients/uil/UilDB.c.orig 2012-10-22 14:50:39.000000000 +0000
+++ clients/uil/UilDB.c
@@ -66,7 +66,16 @@ 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"