Fix Android bulid issue
This commit is contained in:
parent
82224f84d7
commit
817eaf0c00
1 changed files with 6 additions and 5 deletions
|
@ -121,8 +121,14 @@ static int sched_yield (void) {
|
|||
return 0;
|
||||
}
|
||||
#else
|
||||
|
||||
#ifndef __USE_GNU
|
||||
#define __USE_GNU
|
||||
#endif
|
||||
|
||||
#include <pthread.h>
|
||||
#include <stdatomic.h>
|
||||
#include <sched.h>
|
||||
|
||||
typedef void * thread_ret_t;
|
||||
|
||||
|
@ -18724,11 +18730,6 @@ static bool __thread_priority(int32_t prio) {
|
|||
|
||||
#else // posix?
|
||||
|
||||
#ifndef __USE_GNU
|
||||
#define __USE_GNU
|
||||
#endif
|
||||
#include <sched.h>
|
||||
|
||||
static bool __thread_affinity(const bool * mask) {
|
||||
cpu_set_t cpuset;
|
||||
int32_t err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue