1 Use NAME_MAX instead of MAXNAMLEN
3 NAME_MAX is POSIX, and available in all C libraries, generally in
4 <limits.h>, while MAXNAMLEN is BSD-specific, and only available in
5 musl in <sys/param.h>. So let's use NAME_MAX instead of MAXNAMLEN.
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 Index: b/src/index_dir.c
10 ===================================================================
17 -#define MAX_FILE_LENGTH MAXNAMLEN
18 +#define MAX_FILE_LENGTH NAME_MAX
19 #define MAX_PATH_LENGTH PATH_MAX
21 #define INT_TO_HEX(x) \