aboutsummaryrefslogtreecommitdiffstats
path: root/main/bluez/fix-includes.patch
blob: cfb73ffd6b049f2efcc276728975a0f44b942242 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
--- bluez-5.11.orig/profiles/network/common.c
+++ bluez-5.11/profiles/network/common.c
@@ -29,10 +29,12 @@
 #include <errno.h>
 #include <unistd.h>
 #include <stdlib.h>
+#include <sys/types.h>
 #include <sys/param.h>
 #include <sys/ioctl.h>
 #include <sys/socket.h>
 #include <sys/wait.h>
+#include <sys/time.h>
 #include <net/if.h>
 #include <linux/sockios.h>
 
--- bluez-5.11.orig/profiles/network/connection.c
+++ bluez-5.11/profiles/network/connection.c
@@ -29,6 +29,7 @@
 #include <stdbool.h>
 #include <errno.h>
 #include <unistd.h>
+#include <sys/time.h>
 #include <netinet/in.h>
 
 #include <bluetooth/bluetooth.h>
--- bluez-5.11.orig/src/textfile.h
+++ bluez-5.11/src/textfile.h
@@ -24,6 +24,8 @@
 #ifndef __TEXTFILE_H
 #define __TEXTFILE_H
 
+#include <sys/types.h>
+
 int create_file(const char *filename, const mode_t mode);
 int create_name(char *buf, size_t size, const char *path,
 				const char *address, const char *name);
--- bluez-5.11.orig/tools/csr_usb.c
+++ bluez-5.11/tools/csr_usb.c
@@ -29,6 +29,7 @@
 #include <errno.h>
 #include <ctype.h>
 #include <fcntl.h>
+#include <limits.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
--- bluez-5.11.orig/tools/hid2hci.c
+++ bluez-5.11/tools/hid2hci.c
@@ -35,6 +35,8 @@
 #include <string.h>
 #include <dirent.h>
 #include <getopt.h>
+#include <limits.h>
+#include <sys/types.h>
 #include <sys/ioctl.h>
 #include <linux/types.h>
 #include <linux/hiddev.h>
--- bluez-5.11.orig/unit/test-sdp.c
+++ bluez-5.11/unit/test-sdp.c
@@ -134,6 +134,10 @@
 {
 }
 
+void error(const char *format, ...)
+{
+}
+
 static void context_quit(struct context *context)
 {
 	g_main_loop_quit(context->main_loop);
--- bluez-5.11.orig/src/systemd.c
+++ bluez-5.11/src/systemd.c
@@ -30,6 +30,7 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <stddef.h>
+#include <string.h>
 #include <sys/socket.h>
 #include <sys/un.h>