summaryrefslogtreecommitdiff
path: root/net-analyzer/mk-livestatus/files/mk-livestatus-1.2.8_p26-fno-common.patch
blob: e0dc8469c15ab7d1fcee148879e45434ca178efc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/src/logger.h
+++ b/src/logger.h
@@ -27,6 +27,7 @@
 
 #include "config.h"  // IWYU pragma: keep
 #include <syslog.h>
+#include <pthread.h>
 
 #ifdef CMC
 #define LG_DEBUG LOG_INFO
@@ -49,6 +50,8 @@
 extern "C" {
 #endif
 
+extern pthread_t g_mainthread_id;
+
 void logger(int priority, const char *loginfo, ...)
     __attribute__((format(printf, 2, 3)));
 void open_logfile();
--- a/src/module.c
+++ b/src/module.c
@@ -95,7 +95,6 @@
 char g_logfile_path[4096];
 int g_debug_level = 0;
 int g_should_terminate = false;
-pthread_t g_mainthread_id;
 pthread_t *g_clientthread_id;
 unsigned long g_max_cached_messages = 500000;
 unsigned long g_max_lines_per_logfile =