$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 #endif - - +#if defined(__NetBSD__) +#include +# 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"