Skip to content

Commit 62ef260

Browse files
fmzfmz
authored andcommitted
Fix Android bulid issue
1 parent 3b14c84 commit 62ef260

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ggml/src/ggml.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,14 @@ static int sched_yield (void) {
115115
return 0;
116116
}
117117
#else
118+
119+
#ifndef __USE_GNU
120+
#define __USE_GNU
121+
#endif
122+
118123
#include <pthread.h>
119124
#include <stdatomic.h>
125+
#include <sched.h>
120126

121127
typedef void * thread_ret_t;
122128

@@ -18736,11 +18742,6 @@ static bool __thread_priority(int32_t prio) {
1873618742

1873718743
#else // posix?
1873818744

18739-
#ifndef __USE_GNU
18740-
#define __USE_GNU
18741-
#endif
18742-
#include <sched.h>
18743-
1874418745
static bool __thread_affinity(const bool * mask) {
1874518746
cpu_set_t cpuset;
1874618747
int32_t err;

0 commit comments

Comments
 (0)