blob: 7cd9dc82591def5994763be278a820702c694883 (
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
31
32
|
$NetBSD: patch-ad,v 1.3 2006/05/12 08:25:47 joerg Exp $
--- compat/barrier.c.orig 2006-05-01 12:57:31.000000000 +0000
+++ compat/barrier.c
@@ -30,7 +30,27 @@
***********************************************************************/
#include <errno.h>
+
+#if defined(__DragonFly__)
+#define pthread_barrier_init sys_pthread_barrier_init
+#define pthread_barrier_destroy sys_pthread_barrier_destroy
+#define pthread_barrier_wait sys_pthread_barrier_wait
+#define pthread_barrier_t sys_pthread_barrier_t
+#define pthread_barrierattr_init sys_pthread_barrierattr_init
+#define pthread_barrierattr_destroy sys_pthread_barrierattr_destroy
+#define pthread_barrierattr_t sys_pthread_barrierattr_t
+#endif
#include <pthread.h>
+#if defined(__DragonFly__)
+#undef pthread_barrier_init
+#undef pthread_barrier_destroy
+#undef pthread_barrier_wait
+#undef pthread_barrier_t
+#undef pthread_barrierattr_init
+#undef pthread_barrierattr_destroy
+#undef pthread_barrierattr_t
+#undef PTHREAD_BARRIER_SERIAL_THREAD
+#endif
#include "barrier.h"
extern int
|