aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-05-02 09:41:35 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-05-02 09:42:19 +0200
commite3526c15194eab9b3ef8d7ce3dc032a1290658fa (patch)
tree3131526847dff68f400a9c9241118f633346e090
parent5b4d18dd1cc33c4cfd62a20704f4c48d2097c9c1 (diff)
downloadbuildroot-e3526c15194eab9b3ef8d7ce3dc032a1290658fa.tar.gz
buildroot-e3526c15194eab9b3ef8d7ce3dc032a1290658fa.tar.bz2
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>
-rw-r--r--package/boa/0001-use-name-max.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/boa/0001-use-name-max.patch b/package/boa/0001-use-name-max.patch
new file mode 100644
index 0000000000..055e56c3e1
--- /dev/null
+++ b/package/boa/0001-use-name-max.patch
@@ -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) \