From 9837e7605080422c84b3f486ae2c939f434a2d4b Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Wed, 6 Dec 2017 20:05:18 -0500 Subject: FreeBSD 11.1 compatibility. --- libhb/ports.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'libhb/ports.h') diff --git a/libhb/ports.h b/libhb/ports.h index 33bb9c059..57723061b 100644 --- a/libhb/ports.h +++ b/libhb/ports.h @@ -118,9 +118,6 @@ typedef struct hb_thread_s hb_thread_t; #elif defined( SYS_DARWIN ) # define HB_LOW_PRIORITY 0 # define HB_NORMAL_PRIORITY 31 -#elif defined( SYS_LINUX ) || defined( SYS_FREEBSD ) || defined ( SYS_SunOS ) || defined ( __FreeBSD_kernel__ ) -# define HB_LOW_PRIORITY 0 -# define HB_NORMAL_PRIORITY 0 #elif defined( SYS_CYGWIN ) # define HB_LOW_PRIORITY 0 # define HB_NORMAL_PRIORITY 1 @@ -129,6 +126,14 @@ typedef struct hb_thread_s hb_thread_t; # define HB_NORMAL_PRIORITY 0 #endif +#ifndef HB_LOW_PRIORITY +#define HB_LOW_PRIORITY 0 +#endif + +#ifndef HB_NORMAL_PRIORITY +#define HB_NORMAL_PRIORITY 0 +#endif + typedef void (thread_func_t)(void *); hb_thread_t * hb_thread_init( const char * name, thread_func_t *function, void * arg, int priority ); -- cgit v1.2.3