topology: add include for ENABLE_NLS on musl

Needed for setlocale().

(After rebasing to pick up 8c229270f6, just
move it to be guarded as the include now exists.)

Closes: https://github.com/alsa-project/alsa-utils/pull/234
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Sam James 2023-09-07 21:23:51 +01:00 committed by Jaroslav Kysela
parent 039e4cad48
commit d272c5d935

View file

@ -32,11 +32,13 @@
#include <sys/stat.h>
#include <getopt.h>
#include <assert.h>
#include <locale.h>
#include <alsa/asoundlib.h>
#include <alsa/topology.h>
#include "gettext.h"
#ifdef ENABLE_NLS
#include <locale.h>
#endif
#include "version.h"
#include "topology.h"