]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
fix: add POSIX functionality for Linux compilation (#51)
authorValentyn Bezshapkin <redacted>
Wed, 22 Mar 2023 17:20:25 +0000 (18:20 +0100)
committerGitHub <redacted>
Wed, 22 Mar 2023 17:20:25 +0000 (19:20 +0200)
* fix: add POSIX functionality for Linux compilation

* fix: older standard for compatibility

ggml.c

diff --git a/ggml.c b/ggml.c
index d005445771f3cf8732cb87435e1d88b372818422..7ea9f6228e9e2b9e02546bcc3a164135549d907b 100644 (file)
--- 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__)