xorg-server: not available with musl on ARM
[buildroot-gz.git] / package / bluez_utils / 0003-fix-compilation-issues-with-musl.patch
blobd8b48eaad2782820e7e417657aee4508a6e40646
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>
17 ---
18 compat/bnep.c | 1 +
19 compat/dund.c | 1 -
20 src/textfile.h | 1 +
21 3 files changed, 2 insertions(+), 1 deletion(-)
23 diff --git a/compat/bnep.c b/compat/bnep.c
24 index 281350b..49226c1 100644
25 --- a/compat/bnep.c
26 +++ b/compat/bnep.c
27 @@ -32,6 +32,7 @@
28 #include <stdlib.h>
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
37 --- a/compat/dund.c
38 +++ b/compat/dund.c
39 @@ -29,7 +29,6 @@
40 #include <stdio.h>
41 #include <errno.h>
42 #include <fcntl.h>
43 -#include <unistd.h>
44 #include <stdlib.h>
45 #include <string.h>
46 #include <syslog.h>
47 diff --git a/src/textfile.h b/src/textfile.h
48 index dc5fc2b..0148b30 100644
49 --- a/src/textfile.h
50 +++ b/src/textfile.h
51 @@ -24,6 +24,7 @@
52 #ifndef __TEXTFILE_H
53 #define __TEXTFILE_H
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,
59 --
60 2.4.3