瀏覽代碼

ggml : add pthread includes on FreeBSD (#9258)

yuri@FreeBSD 1 年之前
父節點
當前提交
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 <stdatomic.h>
 #include <sched.h>
+#if defined(__FreeBSD__)
+#include <pthread_np.h>
+#endif
 
 typedef void * thread_ret_t;