amanda/fix-multiple-definition.patch
liheavy 2a52769ddd fix multiple definition tu_debugging_enabled
fix multiple definition tu_debugging_enabled
2021-08-02 10:45:10 +08:00

15 lines
427 B
Diff

diff --git a/common-src/testutils.h b/common-src/testutils.h
index 31f8973..3bb376f 100644
--- a/common-src/testutils.h
+++ b/common-src/testutils.h
@@ -75,7 +75,7 @@ typedef struct TestUtilsTest {
#define tu_dbg(...) if (tu_debugging_enabled) { g_fprintf(stderr, __VA_ARGS__); }
/* Is debugging enabled for this test run? (set internally) */
-int tu_debugging_enabled;
+extern int tu_debugging_enabled;
/*
* Main loop