pkgsrc-ng/textproc/sphinxsearch/patches/patch-src_sphinxstd.h
2016-01-21 23:40:00 +01:00

22 lines
666 B
C

$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
/////////////////////////////////////////////////////////////////////////////