Fix Android bulid issue

This commit is contained in:
Faisal Zaghloul 2024-07-31 12:42:30 -04:00 committed by fmz
parent 82224f84d7
commit 817eaf0c00

View file

@ -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;