aboutsummaryrefslogtreecommitdiffstats
path: root/main/bluez
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-04-24 06:15:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-04-24 06:16:27 +0000
commit67e922f01a0a41f4211d5f07d186d4cd27e09b5a (patch)
treee4d4b232448c304e2ffcd710d71c83cad2107697 /main/bluez
parentee58acee1ec53f2cf5575a16efb369541522cf6a (diff)
downloadaports-67e922f01a0a41f4211d5f07d186d4cd27e09b5a.tar.bz2
aports-67e922f01a0a41f4211d5f07d186d4cd27e09b5a.tar.xz
main/bluez: add missing patch
Diffstat (limited to 'main/bluez')
-rw-r--r--main/bluez/0001-tools-fix-headers-for-bcm43xx.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/bluez/0001-tools-fix-headers-for-bcm43xx.patch b/main/bluez/0001-tools-fix-headers-for-bcm43xx.patch
new file mode 100644
index 0000000000..38932a6574
--- /dev/null
+++ b/main/bluez/0001-tools-fix-headers-for-bcm43xx.patch
@@ -0,0 +1,33 @@
+From 69f8b5ad0467b1f305a5bb753953061e7998d3dc Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Mon, 21 Apr 2014 14:19:02 +0000
+Subject: [PATCH] tools: fix headers for bcm43xx
+
+PATH_MAX is defined in limits.h so includ it explicitly.
+
+This fixes the following compile error on musl libc (Alpine Linux):
+tools/hciattach_bcm43xx.c: In function 'bcm43xx_locate_patch':
+tools/hciattach_bcm43xx.c:313:14: error: 'PATH_MAX' undeclared (first use in this function)
+ char path[PATH_MAX];
+ ^
+
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+---
+ tools/hciattach_bcm43xx.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tools/hciattach_bcm43xx.c b/tools/hciattach_bcm43xx.c
+index ad9b239..cb4bfb9 100644
+--- a/tools/hciattach_bcm43xx.c
++++ b/tools/hciattach_bcm43xx.c
+@@ -34,6 +34,7 @@
+ #include <errno.h>
+ #include <dirent.h>
+ #include <time.h>
++#include <limits.h>
+
+ #include <bluetooth/bluetooth.h>
+ #include <bluetooth/hci.h>
+--
+1.9.2
+