diff options
author | Andreas Müller <schnitzeltony@gmail.com> | 2021-06-03 16:07:10 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2021-06-07 19:13:47 +0200 |
commit | 6a0d13ddb2b2afb450f3404d3cbaa56253bdcab2 (patch) | |
tree | 05cb2a7ebe4f7e54c04baa38357cec521ae98656 /alsactl | |
parent | 6018c2014ac24877b2aa58c2c57f2fd901e6c7b1 (diff) | |
download | alsa-utils-6a0d13ddb2b2afb450f3404d3cbaa56253bdcab2.tar.gz |
utils.c: Include limits.h explicitly to fix build on musl
Fixes:
| ../../alsa-utils-1.2.5/alsactl/utils.c: In function 'snd_card_clean_cfgdir':
| ../../alsa-utils-1.2.5/alsactl/utils.c:309:19: error: 'PATH_MAX' undeclared (first use in this function)
| 309 | char path[PATH_MAX];
| | ^~~~~~~~
| ../../alsa-utils-1.2.5/alsactl/utils.c:309:19: note: each undeclared identifier is reported only once for each function it appears in
Fixes: https://github.com/alsa-project/alsa-utils/pull/92
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'alsactl')
-rw-r--r-- | alsactl/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/alsactl/utils.c b/alsactl/utils.c index fd4a108..a507972 100644 --- a/alsactl/utils.c +++ b/alsactl/utils.c @@ -30,6 +30,7 @@ #include <syslog.h> #include <sys/stat.h> #include <sys/mman.h> +#include <limits.h> #include "alsactl.h" int file_map(const char *filename, char **buf, size_t *bufsize) |