Skip to content

Commit

Permalink
package/alsa-utils: Fix musl build
Browse files Browse the repository at this point in the history
The build error was introduced when bumping alsa-utils to 1.2.10
with buildroot commit f7ae222

Fixes:
http://autobuild.buildroot.net/results/5a0/5a03cba08bf24d61c816b8e2f257c18004bad3d7/

Signed-off-by: Bernd Kuhls <[email protected]>
Signed-off-by: Arnout Vandecappelle <[email protected]>
  • Loading branch information
bkuhls authored and arnout committed Oct 15, 2023
1 parent ea3ee73 commit 828bb54
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
33 changes: 33 additions & 0 deletions package/alsa-utils/0009-topology-include-locale.h.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From 8c229270f6bae83b705a03714c46067a7aa57b02 Mon Sep 17 00:00:00 2001
From: Michael Opdenacker <[email protected]>
Date: Tue, 19 Sep 2023 13:14:29 +0200
Subject: [PATCH] topology: include locale.h

This solves an issue compiling with the musl libc.

Fixes: https://github.com/alsa-project/alsa-utils/issues/239
Signed-off-by: Michael Opdenacker <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>

Upstream: https://github.com/alsa-project/alsa-utils/commit/8c229270f6bae83b705a03714c46067a7aa57b02

Signed-off-by: Bernd Kuhls <[email protected]>
---
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.39.2

33 changes: 33 additions & 0 deletions package/alsa-utils/0010-nhlt-dmic-info.c-include-sys-types.h.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From 0925ad7f09b2dc77015784f9ac2f5e34dd0dd5c3 Mon Sep 17 00:00:00 2001
From: Michael Opdenacker <[email protected]>
Date: Tue, 19 Sep 2023 13:14:30 +0200
Subject: [PATCH] nhlt-dmic-info.c: include sys/types.h

This fixes an issue compiling with the musl libc.

Fixes: https://github.com/alsa-project/alsa-utils/issues/238
Signed-off-by: Michael Opdenacker <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>

Upstream: https://github.com/alsa-project/alsa-utils/commit/0925ad7f09b2dc77015784f9ac2f5e34dd0dd5c3

Signed-off-by: Bernd Kuhls <[email protected]>
---
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.39.2

0 comments on commit 828bb54

Please sign in to comment.