]> git.alsa-project.org Git - alsa-utils.git/commitdiff
utils.c: Include limits.h explicitly to fix build on musl
authorAndreas Müller <schnitzeltony@gmail.com>
Thu, 3 Jun 2021 14:07:10 +0000 (16:07 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 7 Jun 2021 17:13:47 +0000 (19:13 +0200)
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>
alsactl/utils.c

index fd4a10826ccb210a6b1a49d950cc8b5676f7d9a5..a50797259f21ab208a64ef209cfec101dc989e28 100644 (file)
@@ -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)