Skip to content

Commit

Permalink
ggml : add pthread includes on FreeBSD (ggerganov#9258)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict authored Sep 2, 2024
1 parent 6e7d133 commit f771d06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ggml/src/ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f771d06

Please sign in to comment.