From db4945c22ac3dfab6046a8b825fb8ff67c700e13 Mon Sep 17 00:00:00 2001 From: tpoisonooo Date: Fri, 17 Mar 2023 15:06:09 +0800 Subject: [PATCH] fix(ggml): compile error on centos 7.9 and gcc7 --- ggml.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ggml.h b/ggml.h index bac4fe65c..a66f8b38f 100644 --- a/ggml.h +++ b/ggml.h @@ -1,5 +1,9 @@ #pragma once +#ifdef __linux__ +#define _POSIX_C_SOURCE 199309L +#endif + // // GGML Tensor Library //