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 +}