]> git.alsa-project.org Git - alsa-utils.git/commitdiff
topology: add include for ENABLE_NLS on musl
authorSam James <sam@gentoo.org>
Thu, 7 Sep 2023 20:23:51 +0000 (21:23 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 17 Oct 2023 11:44:54 +0000 (13:44 +0200)
Needed for setlocale().

(After rebasing to pick up 8c229270f6bae83b705a03714c46067a7aa57b02, 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>
topology/topology.c

index 5d03a8b133b85aad2ab968cab34d8ac0ab1073e3..98b000aa50319478294c7e8a40ce8391ddbf2e5f 100644 (file)
 #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"