File 0002-tools-fix-headers-for-bcm43xx.patch of Package bluez.27456
From abea19d1449f910d9ae87a91c17f65ce15c0ac45 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Wed, 20 Aug 2014 11:06:21 +0200
Subject: [PATCH 2/3] tools: fix headers for bcm43xx
PATH_MAX is defined in limits.h so include 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];
^
---
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>
--
2.9.3