Commit 39af8c72 authored by Jerome Duval's avatar Jerome Duval Committed by Henrik Gramner
Browse files

Haiku support

Add Haiku as supported platform in configure.
Haiku has no nice() function, use the platform specific substitute instead.
parent 59683a97
......@@ -369,6 +369,10 @@ static ALWAYS_INLINE void x264_prefetch( void *p )
sp.sched_priority -= p;\
pthread_setschedparam( handle, policy, &sp );\
}
#elif SYS_HAIKU
#include <OS.h>
#define x264_lower_thread_priority(p)\
{ UNUSED status_t nice_ret = set_thread_priority( find_thread( NULL ), B_LOW_PRIORITY ); }
#else
#include <unistd.h>
#define x264_lower_thread_priority(p) { UNUSED int nice_ret = nice(p); }
......
......@@ -651,6 +651,9 @@ case $host_os in
HAVE_GETOPT_LONG=0
CFLAGS="$CFLAGS -I\$(SRCPATH)/extras"
;;
*haiku*)
SYS="HAIKU"
;;
*)
die "Unknown system $host, edit the configure"
;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment