boa: add patch to fix musl build issue
Fixes: http://autobuild.buildroot.org/results/76a/76a8d5750c30321825acaa2fc3ce9d73a1c87bc7/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
5b4d18dd1c
commit
e3526c1519
21
package/boa/0001-use-name-max.patch
Normal file
21
package/boa/0001-use-name-max.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
Use NAME_MAX instead of MAXNAMLEN
|
||||||
|
|
||||||
|
NAME_MAX is POSIX, and available in all C libraries, generally in
|
||||||
|
<limits.h>, while MAXNAMLEN is BSD-specific, and only available in
|
||||||
|
musl in <sys/param.h>. So let's use NAME_MAX instead of MAXNAMLEN.
|
||||||
|
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
|
||||||
|
Index: b/src/index_dir.c
|
||||||
|
===================================================================
|
||||||
|
--- a/src/index_dir.c
|
||||||
|
+++ b/src/index_dir.c
|
||||||
|
@@ -29,7 +29,7 @@
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include "compat.h"
|
||||||
|
|
||||||
|
-#define MAX_FILE_LENGTH MAXNAMLEN
|
||||||
|
+#define MAX_FILE_LENGTH NAME_MAX
|
||||||
|
#define MAX_PATH_LENGTH PATH_MAX
|
||||||
|
|
||||||
|
#define INT_TO_HEX(x) \
|
Loading…
Reference in New Issue
Block a user