diff options
author | Dylan Baker <[email protected]> | 2018-09-13 11:06:09 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2018-09-17 13:16:46 -0700 |
commit | 3acc18fcf7c38e7060e43e2de59f09392aa8fdea (patch) | |
tree | f2766ca27c17e1b48bf9a3bc479be6f82947c1b2 /src/util | |
parent | 60d0c0d062b543b85a354e5266aa974fcdc36290 (diff) |
move pthread_setaffinity_np check to the build system
Rather than trying to encode all of the rules in a header, lets just put
them in the build system where they belong. This fixes the build on
FreeBSD, which does have pthraed_setaffinity_np, but it's in a
pthread_np.h, not behind _GNU_SOURCE. FreeBSD also implements cpu_set
slightly differently, so additional changes would be required to get it
working right there anyway.
v2: - fix #define in autotools
Fixes: 9f1bbbdbbd77d346c74c7abbb31f399151a85713
("util: try to fix the Android and MacOS build")
Cc: Emil Velikov <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/u_thread.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/util/u_thread.h b/src/util/u_thread.h index eee6f3c712d..7538d7d634b 100644 --- a/src/util/u_thread.h +++ b/src/util/u_thread.h @@ -36,10 +36,6 @@ #include <signal.h> #endif -#if defined(HAVE_PTHREAD) && !defined(ANDROID) && !defined(__APPLE__) -#define HAVE_PTHREAD_SETAFFINITY -#endif - static inline thrd_t u_thread_create(int (*routine)(void *), void *param) { thrd_t thread; |