Add Haiku as supported platform in configure.
Haiku has no nice() function, use the platform specific substitute instead.
sp.sched_priority -= p;\
pthread_setschedparam( handle, policy, &sp );\
}
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); }
#else
#include <unistd.h>
#define x264_lower_thread_priority(p) { UNUSED int nice_ret = nice(p); }
HAVE_GETOPT_LONG=0
CFLAGS="$CFLAGS -I\$(SRCPATH)/extras"
;;
HAVE_GETOPT_LONG=0
CFLAGS="$CFLAGS -I\$(SRCPATH)/extras"
;;
+ *haiku*)
+ SYS="HAIKU"
+ ;;
*)
die "Unknown system $host, edit the configure"
;;
*)
die "Unknown system $host, edit the configure"
;;