mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
23 lines
574 B
Plaintext
23 lines
574 B
Plaintext
$NetBSD: patch-ac,v 1.6 2006/01/09 13:13:53 joerg Exp $
|
|
|
|
--- lib/Xm/Xmos.c.orig 2005-11-25 05:50:57.000000000 +0100
|
|
+++ lib/Xm/Xmos.c
|
|
@@ -91,6 +91,17 @@ extern int regex();
|
|
|
|
#include <sys/stat.h>
|
|
|
|
+#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
|
|
+
|
|
#define X_INCLUDE_PWD_H
|
|
#define X_INCLUDE_DIRENT_H
|
|
#define XOS_USE_XT_LOCKING
|