From c38b0bbf82291d447727d7741964b127db6ff00f Mon Sep 17 00:00:00 2001 From: Kilty McGowan Date: Mon, 5 Jun 2023 09:02:14 -0700 Subject: [PATCH] Only import unistd.h for Metal builds --- ggml.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ggml.c b/ggml.c index 785f4b91f..c066b5f47 100644 --- a/ggml.c +++ b/ggml.c @@ -20,7 +20,10 @@ #include #include #include + +#ifdef GGML_USE_METAL #include +#endif // if C99 - static_assert is noop // ref: https://stackoverflow.com/a/53923785/4039976