From 8e5ffd22e17e649cca293e6f1237263b07a9596d Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sat, 18 Apr 2020 00:12:01 -0400 Subject: [PATCH] wmtv: Use extern when declaring global variables in header file. Avoids a FTBFS when compiling with -fno-common, which will be default in GCC 10. --- wmtv/src/wmgeneral/wmgeneral.h | 2 +- wmtv/src/wmtv.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wmtv/src/wmgeneral/wmgeneral.h b/wmtv/src/wmgeneral/wmgeneral.h index e26ca58..f4b4ba9 100644 --- a/wmtv/src/wmgeneral/wmgeneral.h +++ b/wmtv/src/wmgeneral/wmgeneral.h @@ -36,7 +36,7 @@ typedef struct { /* Global variable */ /*******************/ -Display *display; +extern Display *display; /***********************/ /* Function Prototypes */ diff --git a/wmtv/src/wmtv.c b/wmtv/src/wmtv.c index 1fa2eea..5c4c581 100644 --- a/wmtv/src/wmtv.c +++ b/wmtv/src/wmtv.c @@ -85,6 +85,7 @@ #endif /* Global Variables */ +Display *display; int tfd; int card_present = FALSE; int ntfb_status = SETOFF;