sync : try to fix build on tvOS

This commit is contained in:
Georgi Gerganov 2023-11-02 19:22:06 +02:00
parent 8401e3ebcd
commit 815f44e5a3
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

6
ggml.c
View file

@ -100,8 +100,12 @@ typedef void * thread_ret_t;
#include <hbwmalloc.h> #include <hbwmalloc.h>
#endif #endif
#if defined(__APPLE__)
#include <TargetConditionals.h>
#endif
#if (defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)) && \ #if (defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)) && \
(!defined(TARGET_OS_TV)) (!defined(TARGET_OS_TV) && !defined(TARGET_OS_WATCH))
#include <sys/wait.h> #include <sys/wait.h>