Skip to content

Commit 3b45d50

Browse files
author
fmz
committed
Fix Android bulid issue
1 parent 7a632ba commit 3b45d50

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

@@ -18738,11 +18744,6 @@ static bool __thread_priority(int32_t prio) {
1873818744

1873918745
#else // posix?
1874018746

18741-
#ifndef __USE_GNU
18742-
#define __USE_GNU
18743-
#endif
18744-
#include <sched.h>
18745-
1874618747
static bool __thread_affinity(const bool * mask) {
1874718748
cpu_set_t cpuset;
1874818749
int32_t err;

0 commit comments

Comments
 (0)