The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / boa / 0001-use-name-max.patch
1 Use NAME_MAX instead of MAXNAMLEN
2
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.
6
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8
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"
16  
17 -#define MAX_FILE_LENGTH                         MAXNAMLEN
18 +#define MAX_FILE_LENGTH                         NAME_MAX
19  #define MAX_PATH_LENGTH                         PATH_MAX
20  
21  #define INT_TO_HEX(x) \