Spaces:
Sleeping
Sleeping
yuri@FreeBSD
commited on
Commit
·
d558e0e
1
Parent(s):
bd4f5ec
ggml : add pthread includes on FreeBSD (llama/9258)
Browse files- ggml/src/ggml.c +3 -0
ggml/src/ggml.c
CHANGED
|
@@ -147,6 +147,9 @@ static int sched_yield (void) {
|
|
| 147 |
#include <pthread.h>
|
| 148 |
#include <stdatomic.h>
|
| 149 |
#include <sched.h>
|
|
|
|
|
|
|
|
|
|
| 150 |
|
| 151 |
typedef void * thread_ret_t;
|
| 152 |
|
|
|
|
| 147 |
#include <pthread.h>
|
| 148 |
#include <stdatomic.h>
|
| 149 |
#include <sched.h>
|
| 150 |
+
#if defined(__FreeBSD__)
|
| 151 |
+
#include <pthread_np.h>
|
| 152 |
+
#endif
|
| 153 |
|
| 154 |
typedef void * thread_ret_t;
|
| 155 |
|