1 From 47f163f6bcd1d66bebc49d96abcf46853a0708fb Mon Sep 17 00:00:00 2001
2 From: wxt <3264117476@qq.com>
3 Date: Tue, 22 Oct 2024 07:48:34 +0800
4 Subject: [PATCH] fix build
9 2 files changed, 2 insertions(+), 1 deletion(-)
11 diff --git a/src/helpers.c b/src/helpers.c
12 index c7bc4de..00e6098 100644
16 #include <errno.h> // errno
17 #include <libgen.h> // dirname
19 +light_loglevel_t light_loglevel;
21 bool light_file_read_uint64(char const *filename, uint64_t *val)
23 diff --git a/src/helpers.h b/src/helpers.h
24 index f73714b..4a92753 100644
27 @@ -21,7 +21,7 @@ typedef enum {
31 -light_loglevel_t light_loglevel;
32 +extern light_loglevel_t light_loglevel;
34 #define LIGHT_LOG(lvl, fp, fmt, args...)\
35 if(light_loglevel >= lvl)\