From ffedbb341be6b63f257d6fc9a7c8a6394931487a Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Thu, 31 Dec 2020 11:52:52 +0000
Subject: Fix missing symbol 'pthread_attr_setinheritsched'


diff --git a/src/common/thread/thread.c b/src/common/thread/thread.c
index c4baecf..5e06f7b 100644
--- a/src/common/thread/thread.c
+++ b/src/common/thread/thread.c
@@ -301,7 +301,7 @@ thread_type *thread_create_c(char *name, void *(*start_routine)(void *),
 
         pthread_attr_setstacksize (&attr, 512*1024);
 
-#ifndef __ANDROID__
+#if !defined(__ANDROID__) && !defined(__HAIKU__)
         pthread_attr_setinheritsched (&attr, PTHREAD_INHERIT_SCHED);
 #endif
 
-- 
2.28.0

