1 From 8aa6aa4ba2d9d00c91e36e146895af20cbc00d17 Mon Sep 17 00:00:00 2001
2 From: Brendan Heading <brendanheading@gmail.com>
3 Date: Wed, 2 Sep 2015 12:10:58 +0100
4 Subject: [PATCH 1/1] fix compilation issues with musl.
6 - sys/time.h needed for struct timeval
7 - unistd.h should not be included due to clash with encrypt(3)
8 - sys/types.h needed for mode_t
10 Note that this version of bluez is 3 years old. Recent fixes have gone
11 into the upstream to address musl compatibility issues, but the upstream
12 has changed so much that it makes little sense to try to backport these.
13 This patch is really a stopgap until we move to the latest upstream.
15 Upstream-Status: not needed
16 Signed-off-by: Brendan Heading <brendanheading@gmail.com>
21 3 files changed, 2 insertions(+), 1 deletion(-)
23 diff --git a/compat/bnep.c b/compat/bnep.c
24 index 281350b..49226c1 100644
29 #include <sys/socket.h>
30 #include <sys/ioctl.h>
31 +#include <sys/time.h>
33 #include <bluetooth/bluetooth.h>
34 #include <bluetooth/bnep.h>
35 diff --git a/compat/dund.c b/compat/dund.c
36 index af1b536..c2f085f 100644
47 diff --git a/src/textfile.h b/src/textfile.h
48 index dc5fc2b..0148b30 100644
55 +#include <sys/types.h>
56 int create_dirs(const char *filename, const mode_t mode);
57 int create_file(const char *filename, const mode_t mode);
58 int create_name(char *buf, size_t size, const char *path,