mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
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 <schnitzeltony@gmail.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
0325f4357d
commit
abe805ed6c
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@
|
||||||
#include "ucm_local.h"
|
#include "ucm_local.h"
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
#include <limits.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
|
||||||
static pthread_mutex_t fork_lock = PTHREAD_MUTEX_INITIALIZER;
|
static pthread_mutex_t fork_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue