Skip to content

utils: sofprobeclient: fix musl build#37

Open
bkuhls wants to merge 1 commit into
alsa-project:masterfrom
bkuhls:fix-musl
Open

utils: sofprobeclient: fix musl build#37
bkuhls wants to merge 1 commit into
alsa-project:masterfrom
bkuhls:fix-musl

Conversation

@bkuhls
Copy link
Copy Markdown

@bkuhls bkuhls commented Jun 2, 2026

With musl C library, we see following build failure:

probes_demux.c: In function ‘parser_parse_data’:
probes_demux.c:321:9: error: unknown type name ‘uint’; did you mean ‘int’?
  321 |         uint i = 0;

probes_demux.c:386:25: error: unknown type name ‘uint’; did you mean ‘int’?
  386 |                         uint data_to_copy;

uint is defined in <sys/types.h> header. It is usually included by <stdlib.h> but in musl stdlib.h doesn't include it.

With musl C library, we see following build failure:

probes_demux.c: In function ‘parser_parse_data’:
probes_demux.c:321:9: error: unknown type name ‘uint’; did you mean ‘int’?
  321 |         uint i = 0;

probes_demux.c:386:25: error: unknown type name ‘uint’; did you mean ‘int’?
  386 |                         uint data_to_copy;

uint is defined in <sys/types.h> header. It is usually included by
<stdlib.h> but in musl stdlib.h doesn't include it.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant