diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-08-20 11:06:21 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-08-20 13:40:29 +0300 |
commit | b8f252332e4adff5b917445b6d60fc5d35246f8a (patch) | |
tree | b701897ba1a8833c732a826c2846fd2539ab115a /tools/hciattach_bcm43xx.c | |
parent | d59c6f08ec96a5dfcd3087cc6b798dc8d18b323f (diff) | |
download | bluez-b8f252332e4adff5b917445b6d60fc5d35246f8a.tar.gz |
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];
^
Diffstat (limited to 'tools/hciattach_bcm43xx.c')
-rw-r--r-- | tools/hciattach_bcm43xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/hciattach_bcm43xx.c b/tools/hciattach_bcm43xx.c index ad9b239be..cb4bfb931 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> |