From: Andreas Müller Date: Thu, 3 Jun 2021 10:29:03 +0000 (+0200) Subject: ucm_exec.c: Include limits.h explicitly to fix build on musl X-Git-Tag: v1.2.5.1~5 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=abe805ed6c7f38e48002e575535afd1f673b9bcd;p=alsa-lib.git ucm_exec.c: Include limits.h explicitly to fix build on musl Fixes: | ../../../alsa-lib-1.2.5/src/ucm/ucm_exec.c: In function 'find_exec': | ../../../alsa-lib-1.2.5/src/ucm/ucm_exec.c:43:18: error: 'PATH_MAX' undeclared (first use in this function) | 43 | char bin[PATH_MAX]; | | ^~~~~~~~ | ../../../alsa-lib-1.2.5/src/ucm/ucm_exec.c:43:18: note: each undeclared identifier is reported only once for each function it appears in | ../../../alsa-lib-1.2.5/src/ucm/ucm_exec.c: In function 'uc_mgr_exec': | ../../../alsa-lib-1.2.5/src/ucm/ucm_exec.c:177:18: error: 'PATH_MAX' undeclared (first use in this function) | 177 | char bin[PATH_MAX]; | | ^~~~~~~~ Fixes: https://github.com/alsa-project/alsa-lib/pull/145 Signed-off-by: Andreas Müller Signed-off-by: Jaroslav Kysela --- diff --git a/src/ucm/ucm_exec.c b/src/ucm/ucm_exec.c index d83206d0..4ddf5d15 100644 --- a/src/ucm/ucm_exec.c +++ b/src/ucm/ucm_exec.c @@ -30,6 +30,7 @@ #include "ucm_local.h" #include #include +#include #include static pthread_mutex_t fork_lock = PTHREAD_MUTEX_INITIALIZER;