aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentyn Bezshapkin <61702053+valentynbez@users.noreply.github.com>2023-03-22 18:20:25 +0100
committerGitHub <noreply@github.com>2023-03-22 19:20:25 +0200
commit97940520e8fd49c56bb29b71cc350190b723513f (patch)
tree4ea2c0b0161dfc5850b1ec2618feef3b1b9f23be
parent305ba6f0e6daa3796aad9dd18053a1945dd4cc58 (diff)
fix: add POSIX functionality for Linux compilation (#51)
* fix: add POSIX functionality for Linux compilation * fix: older standard for compatibility
-rw-r--r--ggml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ggml.c b/ggml.c
index d005445..7ea9f62 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__)