From 97940520e8fd49c56bb29b71cc350190b723513f Mon Sep 17 00:00:00 2001 From: Valentyn Bezshapkin <61702053+valentynbez@users.noreply.github.com> Date: Wed, 22 Mar 2023 18:20:25 +0100 Subject: [PATCH] fix: add POSIX functionality for Linux compilation (#51) * fix: add POSIX functionality for Linux compilation * fix: older standard for compatibility --- ggml.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ggml.c b/ggml.c index d00544577..7ea9f6228 100644 --- a/ggml.c +++ b/ggml.c @@ -1,3 +1,6 @@ +// Defines CLOCK_MONOTONIC on Linux +#define _POSIX_C_SOURCE 199309L + #include "ggml.h" #if defined(_MSC_VER) || defined(__MINGW32__)