Files
pkgsrc-ng/textproc/sphinxsearch/patches/patch-src_sphinxstd.h
2014-11-05 12:41:07 +01:00

21 lines
618 B
C

$NetBSD: patch-src_sphinxstd.h,v 1.1 2014/03/05 13:44:23 fhajny Exp $
Portability fixes.
--- src/sphinxstd.h.orig 2014-01-22 15:16:21.000000000 +0000
+++ src/sphinxstd.h
@@ -75,6 +75,13 @@ typedef int __declspec("SAL_nokernel") _
#endif
#endif
+#ifdef __NetBSD__
+#define pthread_mutexattr_setpshared(m,a) (0)
+#define pthread_condattr_setpshared(m,a) (0)
+#include "sys/signal.h"
+#define PTHREAD_STACK_MIN MINSIGSTKSZ
+#endif
+
/////////////////////////////////////////////////////////////////////////////
// COMPILE-TIME CHECKS
/////////////////////////////////////////////////////////////////////////////