Skip to content

Commit bd59dd9

Browse files
committed
Add missing pthread_np.h include on FreeBSD
1 parent 0ab30f8 commit bd59dd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ggml/src/ggml.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ static int sched_yield (void) {
147147
#include <pthread.h>
148148
#include <stdatomic.h>
149149
#include <sched.h>
150+
#if defined(__FreeBSD__)
151+
#include <pthread_np.h>
152+
#endif
150153

151154
typedef void * thread_ret_t;
152155

0 commit comments

Comments
 (0)