0
0
Fork 0
haikuports/sys-block/libhxcfe/patches/libhxcadaptor-2.4.6.0.patchset

26 lines
813 B
Plaintext

From df5201e4f4eaec5f4012bf5d63ac1680d84cc836 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sat, 27 Feb 2016 09:18:23 +0100
Subject: Fix Haiku build.
diff --git a/sources/libhxcadaptor.c b/sources/libhxcadaptor.c
index 253f7a4..c64906b 100644
--- a/sources/libhxcadaptor.c
+++ b/sources/libhxcadaptor.c
@@ -241,9 +241,11 @@ int hxc_createthread(HXCFLOPPYEMULATOR* floppycontext,void* hwcontext,THREADFUNC
pthread_attr_init(&threadattrib);
+#ifndef __HAIKU__
pthread_attr_setinheritsched(&threadattrib, PTHREAD_EXPLICIT_SCHED);
pthread_attr_setschedpolicy(&threadattrib,SCHED_FIFO);
+#endif
param.sched_priority = sched_get_priority_max(SCHED_FIFO);
/* set the new scheduling param */
pthread_attr_setschedparam (&threadattrib, &param);
--
2.7.0