]> git.alsa-project.org Git - alsa-utils.git/commit
alsamixer: define _GNU_SOURCE to get exp10
authorJaroslav Kysela <perex@perex.cz>
Fri, 18 Jan 2019 08:24:12 +0000 (09:24 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 18 Jan 2019 08:40:54 +0000 (09:40 +0100)
commit116488e5f2f1b897084bd151381ee254e1cc177d
treea3e8dfd31fa52b2e7d6b1591146793ee0608a19b
parente1aa6d4d55f503d70771210d4685b6ee50b149fa
alsamixer: define _GNU_SOURCE to get exp10

Fixes Master, Headphones and Speaker stuck at -8 percentage after
building with Clang 7.0.1 and getting warned about implicit declaration
of exp10, which is behind _GNU_SOURCE as a non-standard feature. Thanks
Takashi Iwai for the CFLAGS suggestion on the mailing list. GCC build is
not affected, so not adding a compiler check to the configure script.

uClibc-ng has got exp10 since 1.0.12, so the fallback macro is no longer
needed. However, alsa-utils relies on gettext so might need further
patches to actually work on uClibc systems.

Signed-off-by: makepost <makepost@firemail.cc>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsamixer/Makefile.am
alsamixer/volume_mapping.c