mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
30 lines
728 B
Plaintext
30 lines
728 B
Plaintext
$NetBSD: patch-ai,v 1.1.1.1 2010/03/04 16:28:58 taca Exp $
|
|
|
|
--- include/my_pthread.h.orig 2010-02-04 11:37:06.000000000 +0000
|
|
+++ include/my_pthread.h
|
|
@@ -18,6 +18,13 @@
|
|
#ifndef _my_pthread_h
|
|
#define _my_pthread_h
|
|
|
|
+/* defines __NetBSD_Version__ */
|
|
+#if defined(__NetBSD__)
|
|
+#include <sys/param.h>
|
|
+#endif
|
|
+
|
|
+#include <signal.h>
|
|
+
|
|
#ifndef ETIME
|
|
#define ETIME ETIMEDOUT /* For FreeBSD */
|
|
#endif
|
|
@@ -237,6 +244,10 @@ int sigwait(sigset_t *set, int *sig);
|
|
#endif
|
|
|
|
#ifndef HAVE_NONPOSIX_SIGWAIT
|
|
+#if defined (__NetBSD__) && (__NetBSD_Version__ < 106130000)
|
|
+#define my_sigwait(A,B) __pthread_sigwait((A),(B))
|
|
+#else
|
|
+#endif
|
|
#define my_sigwait(A,B) sigwait((A),(B))
|
|
#else
|
|
int my_sigwait(const sigset_t *set,int *sig);
|