diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-11-21 15:45:49 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2020-11-24 14:55:28 +0000 |
commit | bb7aab6afe8655fc40ecff49791889b6512bb6a0 (patch) | |
tree | 9dcb1c1b96459977a7a05e21d64c361b9ecc62d2 /hw/xwin | |
parent | d18dcecbe08a9ff22e43f12b6b7679a6ef1a6eb0 (diff) |
hw/xwin: Fix building with -fno-common
Provide an actual definition of noDriExtension where used, rather than a
tentative definition in a header, to fix compilation with -fno-common
(the default with gcc 10).
Diffstat (limited to 'hw/xwin')
-rw-r--r-- | hw/xwin/InitOutput.c | 2 | ||||
-rw-r--r-- | hw/xwin/dri/windowsdri.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/hw/xwin/InitOutput.c b/hw/xwin/InitOutput.c index c9390fd18..7a03bfb91 100644 --- a/hw/xwin/InitOutput.c +++ b/hw/xwin/InitOutput.c @@ -111,6 +111,8 @@ static PixmapFormatRec g_PixmapFormats[] = { {32, 32, BITMAP_SCANLINE_PAD} }; +static Bool noDriExtension; + static const ExtensionModule xwinExtensions[] = { #ifdef GLXEXT #ifdef XWIN_WINDOWS_DRI diff --git a/hw/xwin/dri/windowsdri.h b/hw/xwin/dri/windowsdri.h index 852b716b0..ce5769f1a 100644 --- a/hw/xwin/dri/windowsdri.h +++ b/hw/xwin/dri/windowsdri.h @@ -25,6 +25,5 @@ #define windowsdri_h void WindowsDRIExtensionInit(void); -Bool noDriExtension; #endif /* windowsdri_h */ |