We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b5f7c2 commit 52aa677Copy full SHA for 52aa677
ggml/src/CMakeLists.txt
@@ -1247,7 +1247,7 @@ endif()
1247
1248
# Data types, macros and functions related to controlling CPU affinity and
1249
# some memory allocation are available on Linux through GNU extensions in libc
1250
-if (CMAKE_SYSTEM_NAME MATCHES "Linux")
+if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Android")
1251
add_compile_definitions(_GNU_SOURCE)
1252
endif()
1253
ggml/src/ggml.c
@@ -144,10 +144,6 @@ static int sched_yield (void) {
144
}
145
#else
146
147
-#ifndef __USE_GNU
148
-#define __USE_GNU
149
-#endif
150
-
151
#include <pthread.h>
152
#include <stdatomic.h>
153
#include <sched.h>
0 commit comments