From 7d3da7e9686df82bb595857e1fde0cf235ad5fba Mon Sep 17 00:00:00 2001 From: Pascal J Date: Sun, 23 Apr 2023 20:37:42 +0200 Subject: [PATCH] fix implicit function declaration (#53) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pascal Jäger --- meson.build | 1 + src/core/utils.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index dca843b..bca1ac8 100644 --- a/meson.build +++ b/meson.build @@ -14,6 +14,7 @@ add_project_arguments(cc.get_supported_arguments([ '-Wno-missing-field-initializers', '-Wno-unused-parameter', '-D_POSIX_C_SOURCE=200809L', + '-D_GNU_SOURCE', ]), language: 'c') prefix = get_option('prefix') diff --git a/src/core/utils.c b/src/core/utils.c index 2d757e6..1add9ad 100644 --- a/src/core/utils.c +++ b/src/core/utils.c @@ -1,3 +1,4 @@ +#include #include "utils.h" char *getFormat(const char *fmt, ...) { @@ -9,4 +10,4 @@ char *getFormat(const char *fmt, ...) { va_end(args); return outputStr; -} \ No newline at end of file +}