From 401eb03a4e1770e27618d2152533deb34bc4ee7f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Tue, 3 Oct 2000 21:13:24 +0200
Subject: [PATCH] Now survives without pthread_kill(3T).

Rev: src/threads.h:1.104
---
 src/threads.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/threads.h b/src/threads.h
index c0c1522a0f..816c87d88b 100644
--- a/src/threads.h
+++ b/src/threads.h
@@ -1,5 +1,5 @@
 /*
- * $Id: threads.h,v 1.103 2000/08/11 10:46:22 grubba Exp $
+ * $Id: threads.h,v 1.104 2000/10/03 19:13:24 grubba Exp $
  */
 #ifndef THREADS_H
 #define THREADS_H
@@ -117,7 +117,12 @@ extern pthread_attr_t small_pattr;
 #define th_create_small(ID,fun,arg) pthread_create(ID,&small_pattr,fun,arg)
 #define th_exit(foo) pthread_exit(foo)
 #define th_self() pthread_self()
+#ifdef HAVE_PTHREAD_KILL
 #define th_kill(ID,sig) pthread_kill((ID),(sig))
+#else /* !HAVE_PTHREAD_KILL */
+/* MacOS X (aka Darwin) doesn't have pthread_kill. */
+#define th_kill(ID,sig)
+#endif /* HAVE_PTHREAD_KILL */
 #define th_join(ID,res) pthread_join((ID),(res))
 #ifdef HAVE_PTHREAD_COND_INIT
 #define COND_T pthread_cond_t
-- 
GitLab