Просмотр исходного кода

ggml : add pthread includes on FreeBSD (#9258)

yuri@FreeBSD 1 год назад
Родитель
Сommit
f771d064a9
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      ggml/src/ggml.c

+ 3 - 0
ggml/src/ggml.c

@@ -147,6 +147,9 @@ static int sched_yield (void) {
 #include <pthread.h>
 #include <pthread.h>
 #include <stdatomic.h>
 #include <stdatomic.h>
 #include <sched.h>
 #include <sched.h>
+#if defined(__FreeBSD__)
+#include <pthread_np.h>
+#endif
 
 
 typedef void * thread_ret_t;
 typedef void * thread_ret_t;