From: Valentyn Bezshapkin Date: Wed, 22 Mar 2023 17:20:25 +0000 (+0100) Subject: fix: add POSIX functionality for Linux compilation (#51) X-Git-Tag: gguf-v0.4.0~1153 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=97940520e8fd49c56bb29b71cc350190b723513f;p=pkg%2Fggml%2Fsources%2Fllama.cpp fix: add POSIX functionality for Linux compilation (#51) * fix: add POSIX functionality for Linux compilation * fix: older standard for compatibility --- diff --git a/ggml.c b/ggml.c index d0054457..7ea9f622 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__)