summaryrefslogtreecommitdiff
path: root/textproc/sphinxsearch/patches/patch-src_sphinxstd.h
blob: 068a693b38686561cb2f46e135923d6cbb0695ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-src_sphinxstd.h,v 1.3 2014/10/29 13:49:02 fhajny Exp $

Portability fixes.

--- src/sphinxstd.h.orig	2014-09-26 17:21:01.000000000 +0000
+++ src/sphinxstd.h
@@ -75,6 +75,14 @@ typedef int __declspec("SAL_nokernel") _
 #endif
 #endif
 
+#ifdef __NetBSD__
+#define pthread_mutexattr_setpshared(m,a)	(0)
+#define pthread_condattr_setpshared(m,a)	(0)
+#define pthread_rwlockattr_setpshared(m,a)	(0)
+#include "sys/signal.h"
+#define PTHREAD_STACK_MIN MINSIGSTKSZ
+#endif
+
 /////////////////////////////////////////////////////////////////////////////
 // COMPILE-TIME CHECKS
 /////////////////////////////////////////////////////////////////////////////