From 817eaf0c00e3322fc50761d214c029c60851fc62 Mon Sep 17 00:00:00 2001 From: Faisal Zaghloul Date: Wed, 31 Jul 2024 12:42:30 -0400 Subject: [PATCH] Fix Android bulid issue --- ggml/src/ggml.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ggml/src/ggml.c b/ggml/src/ggml.c index 1185e785c..0aed97e3c 100644 --- a/ggml/src/ggml.c +++ b/ggml/src/ggml.c @@ -121,8 +121,14 @@ static int sched_yield (void) { return 0; } #else + +#ifndef __USE_GNU +#define __USE_GNU +#endif + #include #include +#include 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 - static bool __thread_affinity(const bool * mask) { cpu_set_t cpuset; int32_t err;