package/nbd: add option for the trdump utility
[buildroot-gz.git] / package / boa / 0001-use-name-max.patch
blob055e56c3e11c5e2f56320176ff28273a3d9735de
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 ===================================================================
11 --- a/src/index_dir.c
12 +++ b/src/index_dir.c
13 @@ -29,7 +29,7 @@
14 #include <fcntl.h>
15 #include "compat.h"
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) \