Skip to content

Commit 07b17f9

Browse files
yuri@FreeBSDggerganov
authored andcommitted
ggml : add pthread includes on FreeBSD (llama/9258)
1 parent c032b8c commit 07b17f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)