]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ggml : add pthread includes on FreeBSD (llama/9258)
authoryuri@FreeBSD <redacted>
Mon, 2 Sep 2024 15:25:30 +0000 (08:25 -0700)
committerGeorgi Gerganov <redacted>
Sun, 8 Sep 2024 11:43:07 +0000 (14:43 +0300)
src/ggml.c

index a80edf6f7afa8b8dba574774686893dfd9a00013..0e6bcba3573afbf0e38bead96bf2f8e1cbb21b91 100644 (file)
@@ -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;