summaryrefslogtreecommitdiff
path: root/databases/mysql5-server/patches/patch-ai
blob: 7aa38819cdc79cd40f1fc7cee6d011b72ad69f53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-ai,v 1.3 2008/09/18 11:51:37 taca Exp $

--- include/my_pthread.h.orig	2008-08-04 15:19:12.000000000 +0300
+++ include/my_pthread.h	2008-09-16 13:48:57.000000000 +0300
@@ -18,7 +18,13 @@
 #ifndef _my_pthread_h
 #define _my_pthread_h
 
+/* defines __NetBSD_Version__ */
+#if defined(__NetBSD__)
+#include <sys/param.h>
+#endif
+
 #include <errno.h>
+#include <signal.h>
 #ifndef ETIME
 #define ETIME ETIMEDOUT				/* For FreeBSD */
 #endif
@@ -326,7 +332,11 @@
 #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