Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dump1090.h: fix build with gcc 10 #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions dump1090.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
//
#include "coaa.h"
#include "dump1090.h"

struct modes Modes;

//
// ============================= Utility functions ==========================
//
Expand Down
4 changes: 2 additions & 2 deletions dump1090.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@ struct stDF {
uint64_t llTimestamp; // Timestamp at which the this packet was received
uint32_t addr; // Timestamp at which the this packet was received
unsigned char msg[MODES_LONG_MSG_BYTES]; // the binary
} tDF;
};

// Program global state
struct { // Internal state
extern struct modes { // Internal state
pthread_t reader_thread;

pthread_mutex_t data_mutex; // Mutex to synchronize buffer access
Expand Down
3 changes: 3 additions & 0 deletions view1090.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
//
#include "coaa.h"
#include "view1090.h"

struct modes Modes;

//
// ============================= Utility functions ==========================
//
Expand Down