$NetBSD: patch-ai,v 1.2 2007/03/11 18:42:49 adam Exp $ --- include/my_pthread.h.orig 2007-03-05 20:21:12.000000000 +0100 +++ include/my_pthread.h @@ -18,7 +18,13 @@ #ifndef _my_pthread_h #define _my_pthread_h +/* defines __NetBSD_Version__ */ +#if defined(__NetBSD__) +#include +#endif + #include +#include #ifndef ETIME #define ETIME ETIMEDOUT /* For FreeBSD */ #endif @@ -338,7 +344,11 @@ 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 #define my_sigwait(A,B) sigwait((A),(B)) +#endif #else int my_sigwait(const sigset_t *set,int *sig); #endif