wmix: fix multiple definitions of global variables.
commit7e43b2a6792b81166bc63153c09646865bf984da
authorJeremy Sowden <jeremy@azazel.net>
Sat, 18 Apr 2020 17:03:42 +0000 (18 18:03 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 18 Apr 2020 18:46:37 +0000 (18 19:46 +0100)
tree864a0b5ddfb1960ad54e0cccca3e25c53cf8f0fb
parent554ab5db1b4344cbe49d8421d3fef657d97cfa80
wmix: fix multiple definitions of global variables.

The mixer API 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 mixer.c where they are assigned.

Link: https://bugs.debian.org/957947
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
wmix/include/mixer.h
wmix/wmix.c