From 096a1065eaa6a0876f1b92bf6792dc8583584aed Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 28 Feb 2022 23:00:59 +0100 Subject: [PATCH] Fixed linker issue --- dump1090.c | 2 ++ dump1090.h | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dump1090.c b/dump1090.c index b654c01..01d0391 100644 --- a/dump1090.c +++ b/dump1090.c @@ -51,6 +51,8 @@ #include +struct modeStruct Modes; + // // ============================= Utility functions ========================== // diff --git a/dump1090.h b/dump1090.h index 90700ce..f98207e 100644 --- a/dump1090.h +++ b/dump1090.h @@ -294,7 +294,7 @@ struct mag_buf { }; // Program global state -struct { // Internal state +struct modeStruct { // Internal state pthread_t reader_thread; pthread_mutex_t data_mutex; // Mutex to synchronize buffer access @@ -392,7 +392,9 @@ struct { // Internal state int stats_latest_1min; struct stats stats_5min; struct stats stats_15min; -} Modes; +}; + +extern struct modeStruct Modes; // The struct we use to store information about a decoded message. struct modesMessage {