diff options
Diffstat (limited to 'libhb/ports.h')
-rw-r--r-- | libhb/ports.h | 11 |
1 files changed, 8 insertions, 3 deletions
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 ); |