[PATCH 0/2] fixes for the musl C library
From: Michael Opdenacker michael.opdenacker@bootlin.com
This is a series of patches to fix compiling alsa-utils with the Musl C library.
Tests were made use the "master" branch of the Yocto Project Poky distribution.
Compiling with the GNU C library (glibc) was tested too.
Michael Opdenacker (2): topology.c: include locale.h nhlt-dmic-info.c: include sys/types.h
nhlt/nhlt-dmic-info.c | 1 + topology/topology.c | 1 + 2 files changed, 2 insertions(+)
From: Michael Opdenacker michael.opdenacker@bootlin.com
This solves an issue compiling with the musl libc.
Fixes: #239 Signed-off-by: Michael Opdenacker michael.opdenacker@bootlin.com --- topology/topology.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/topology/topology.c b/topology/topology.c index 1840ffe..5d03a8b 100644 --- a/topology/topology.c +++ b/topology/topology.c @@ -32,6 +32,7 @@ #include <sys/stat.h> #include <getopt.h> #include <assert.h> +#include <locale.h>
#include <alsa/asoundlib.h> #include <alsa/topology.h>
From: Michael Opdenacker michael.opdenacker@bootlin.com
This fixes an issue compiling with the musl libc.
Fixes: #238 Signed-off-by: Michael Opdenacker michael.opdenacker@bootlin.com --- nhlt/nhlt-dmic-info.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/nhlt/nhlt-dmic-info.c b/nhlt/nhlt-dmic-info.c index 3f6c64d..331555a 100644 --- a/nhlt/nhlt-dmic-info.c +++ b/nhlt/nhlt-dmic-info.c @@ -33,6 +33,7 @@ #include <fcntl.h> #include <getopt.h> #include <sys/stat.h> +#include <sys/types.h> #include <arpa/inet.h>
int debug = 0;
On 19. 09. 23 13:14, michael.opdenacker@bootlin.com wrote:
From: Michael Opdenacker michael.opdenacker@bootlin.com
This is a series of patches to fix compiling alsa-utils with the Musl C library.
Tests were made use the "master" branch of the Yocto Project Poky distribution.
Compiling with the GNU C library (glibc) was tested too.
Michael Opdenacker (2): topology.c: include locale.h nhlt-dmic-info.c: include sys/types.h
Thanks. Applied both.
Jaroslav
participants (2)
-
Jaroslav Kysela
-
michael.opdenacker@bootlin.com