Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] fixes for the musl C library
@ 2023-09-19 11:14 michael.opdenacker
  2023-09-19 11:14 ` [PATCH 1/2] topology.c: include locale.h michael.opdenacker
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: michael.opdenacker @ 2023-09-19 11:14 UTC (permalink / raw)
  To: alsa-devel; +Cc: Michael Opdenacker

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(+)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] topology.c: include locale.h
  2023-09-19 11:14 [PATCH 0/2] fixes for the musl C library michael.opdenacker
@ 2023-09-19 11:14 ` michael.opdenacker
  2023-09-19 11:14 ` [PATCH 2/2] nhlt-dmic-info.c: include sys/types.h michael.opdenacker
  2023-09-19 12:37 ` [PATCH 0/2] fixes for the musl C library Jaroslav Kysela
  2 siblings, 0 replies; 4+ messages in thread
From: michael.opdenacker @ 2023-09-19 11:14 UTC (permalink / raw)
  To: alsa-devel; +Cc: Michael Opdenacker

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>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] nhlt-dmic-info.c: include sys/types.h
  2023-09-19 11:14 [PATCH 0/2] fixes for the musl C library michael.opdenacker
  2023-09-19 11:14 ` [PATCH 1/2] topology.c: include locale.h michael.opdenacker
@ 2023-09-19 11:14 ` michael.opdenacker
  2023-09-19 12:37 ` [PATCH 0/2] fixes for the musl C library Jaroslav Kysela
  2 siblings, 0 replies; 4+ messages in thread
From: michael.opdenacker @ 2023-09-19 11:14 UTC (permalink / raw)
  To: alsa-devel; +Cc: Michael Opdenacker

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;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] fixes for the musl C library
  2023-09-19 11:14 [PATCH 0/2] fixes for the musl C library michael.opdenacker
  2023-09-19 11:14 ` [PATCH 1/2] topology.c: include locale.h michael.opdenacker
  2023-09-19 11:14 ` [PATCH 2/2] nhlt-dmic-info.c: include sys/types.h michael.opdenacker
@ 2023-09-19 12:37 ` Jaroslav Kysela
  2 siblings, 0 replies; 4+ messages in thread
From: Jaroslav Kysela @ 2023-09-19 12:37 UTC (permalink / raw)
  To: michael.opdenacker, alsa-devel

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

-- 
Jaroslav Kysela <perex@perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-19 12:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-19 11:14 [PATCH 0/2] fixes for the musl C library michael.opdenacker
2023-09-19 11:14 ` [PATCH 1/2] topology.c: include locale.h michael.opdenacker
2023-09-19 11:14 ` [PATCH 2/2] nhlt-dmic-info.c: include sys/types.h michael.opdenacker
2023-09-19 12:37 ` [PATCH 0/2] fixes for the musl C library Jaroslav Kysela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox