Skip to contentSkip to conversation

package/bluez5_utils: fix build with musl

PATCH Superseded Michael Nosthoff via buildroot 1 participant 1 message Jul 22, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/bluez5_utils: fix build with musl

add missing include limits.h for MAX_PATH in mesh-cfgtest.c.

Patch submitted upstream:
https://lore.kernel.org/linux-bluetooth/[email protected]

Fixes:
http://autobuild.buildroot.net/results/20cc47f54de0b0d4bdf108c3715c590ae8ab476f/

---
 ...-tools-mesh-cfgtest-include-limits.h.patch | 27 +++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 package/bluez5_utils/0001-tools-mesh-cfgtest-include-limits.h.patch
package/bluez5_utils/0001-tools-mesh-cfgtest-include-limits.h.patch new file +27 -0
new file mode 100644
index 0000000000..fdb9b15763
@@ -0,0 +1,27 @@
+From 15c81618946c10fd98df6333821f036d8cfeb5c4 Mon Sep 17 00:00:00 2001
+From: Michael Nosthoff <[email protected]>
+Date: Thu, 22 Jul 2021 21:36:13 +0200
+Subject: [PATCH BlueZ] tools/mesh-cfgtest: include limits.h
+
+mesh-cfgtest.c uses MAX_PATH so it should include limits.h.
+
+fixes compilation error with musl-based toolchains.
+---
+ tools/mesh-cfgtest.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tools/mesh-cfgtest.c b/tools/mesh-cfgtest.c
+index fa0474faa..116ab7f16 100644
+--- a/tools/mesh-cfgtest.c
++++ b/tools/mesh-cfgtest.c
+@@ -21,6 +21,7 @@
+ #include <ftw.h>
+ #include <getopt.h>
+ #include <libgen.h>
++#include <limits.h>
+ #include <signal.h>
+ #include <stdio.h>
+ #include <time.h>
+-- 
+2.32.0
+
Signature · 6 lines
2.32.0

_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot