wmacpi: fix multiple definitions of two global variables.
commitab7d89e5201c581fbd45bc6b6a5f5f8078e1c444
authorJeremy Sowden <jeremy@azazel.net>
Sun, 3 May 2020 09:55:35 +0000 (3 10:55 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 3 May 2020 11:16:50 +0000 (3 12:16 +0100)
tree42ab78168f2c62c8e2c8a46be39ec04774d60b1a
parenta2184f603595a59180b86efb792afaacc376cc14
wmacpi: fix multiple definitions of two global variables.

A couple of variables are declared in a header with no explicit linkage.
This results in there being definitions of them in multiple object
files, which causes a link failure with GCC 10, since this uses
-fno-common by default.

Add `extern` to the header declarations and separate declarations with
no linkage in libacpi.c where they are initialized.

Link: https://bugs.debian.org/957938
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
wmacpi/libacpi.c
wmacpi/libacpi.h