You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/light/files/light-1.2.2-fcommon.patch

23 lines
483 B

--- a/src/helpers.c
+++ b/src/helpers.c
@@ -9,6 +9,8 @@
#include <errno.h> // errno
#include <libgen.h> // dirname
+light_loglevel_t light_loglevel;
+
bool light_file_read_uint64(char const *filename, uint64_t *val)
{
--- a/src/helpers.h
+++ b/src/helpers.h
@@ -21,7 +21,7 @@
LIGHT_NOTE_LEVEL
} light_loglevel_t;
-light_loglevel_t light_loglevel;
+extern light_loglevel_t light_loglevel;
#define LIGHT_LOG(lvl, fp, fmt, args...)\
if (light_loglevel >= lvl)\