Skip to content

Commit f771d06

Browse files
authored
ggml : add pthread includes on FreeBSD (#9258)
1 parent 6e7d133 commit f771d06

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)