diff options
author | Natanael Copa <natanael.copa@gmail.com> | 2014-01-22 21:20:38 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-03-05 22:31:21 +0200 |
commit | af5c3d500c27d03e1d208524c7773f142e592974 (patch) | |
tree | 5764c6fb6484a054f81e6c626146b0c9bd27af7e /tools/hciconfig.c | |
parent | ef80103f95410619ed233d8f0f6462358c3d91af (diff) | |
download | bluez-af5c3d500c27d03e1d208524c7773f142e592974.tar.gz |
various header include fixes for building with musl libc
we need:
sys/stat.h for mode_t
limits.h for PATH_MAX
Fixes compile errors:
In file included from tools/hciconfig.c:45:0:
./src/textfile.h:27:1: error: unknown type name 'mode_t'
int create_file(const char *filename, const mode_t mode);
^
tools/csr_usb.c: In function 'read_value':
tools/csr_usb.c:71:12: error: 'PATH_MAX' undeclared (first use in this function)
char path[PATH_MAX];
^
Diffstat (limited to 'tools/hciconfig.c')
-rw-r--r-- | tools/hciconfig.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 0e536be34..548e5721e 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/ioctl.h> #include <sys/socket.h> +#include <sys/stat.h> #include <bluetooth/bluetooth.h> #include <bluetooth/hci.h> |