diff options
author | Bradley Sepos <[email protected]> | 2017-12-06 20:05:18 -0500 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2017-12-06 21:28:04 -0500 |
commit | 9837e7605080422c84b3f486ae2c939f434a2d4b (patch) | |
tree | a93b07cb269d6e264218c8e15d3d2771cf8d99ce /libhb/ports.h | |
parent | 32148d715fdc9970b9add10855f8689d84240126 (diff) |
FreeBSD 11.1 compatibility.
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 ); |