Skip to contentSkip to conversation

fixes for the musl C library

PATCH In review [email protected] 2 participants 4 messages Sep 19, 2023

lore
Share & tools
lore
#0 lore raw

cover fixes for the musl C library

From: Michael Opdenacker <[email protected]>

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(+)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 topology.c: include locale.h

From: Michael Opdenacker <[email protected]>

This solves an issue compiling with the musl libc.

---
 topology/topology.c | 1 +
 1 file changed, 1 insertion(+)
topology/topology.c +1 -0
index 1840ffe..5d03a8b 100644
@@ -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>
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/2 nhlt-dmic-info.c: include sys/types.h

In reply to [email protected]

From: Michael Opdenacker <[email protected]>

This fixes an issue compiling with the musl libc.

---
 nhlt/nhlt-dmic-info.c | 1 +
 1 file changed, 1 insertion(+)
nhlt/nhlt-dmic-info.c +1 -0
index 3f6c64d..331555a 100644
@@ -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;
Signature · 1 line
2.34.1
#3 lore raw
In reply to [email protected]
Quoted 5 lines · On 19. 09. 23 13:14, [email protected] wrote:

From: Michael Opdenacker <[email protected]>

This is a series of patches to fix compiling alsa-utils with the Musl C library.

Quoted 8 lines

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

Signature · 2 lines
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.