summaryrefslogtreecommitdiff
path: root/packages/bluez/bluez-utils/uclibc-fix.patch
blob: 6d4753c2e507e7c176a84929ce4c04c8a2d5df1b (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
Uclibc doesn't define or support speeds above 115200. So check the existence
of the defines before allowing them to actually be used.

Index: bluez-utils-3.9/tools/hciattach.c
===================================================================
--- bluez-utils-3.9.orig/tools/hciattach.c	2007-05-17 12:34:28.000000000 +1000
+++ bluez-utils-3.9/tools/hciattach.c	2007-05-17 12:40:20.000000000 +1000
@@ -105,22 +105,38 @@
 		return B57600;
 	case 115200:
 		return B115200;
+#ifdef B230400
 	case 230400:
 		return B230400;
+#endif
+#ifdef B460800
 	case 460800:
 		return B460800;
+#endif
+#ifdef B500000
 	case 500000:
 		return B500000;
+#endif
+#ifdef B576000
 	case 576000:
 		return B576000;
+#endif
+#ifdef B921600
 	case 921600:
 		return B921600;
+#endif
+#ifdef B1000000
 	case 1000000:
 		return B1000000;
+#endif
+#ifdef B1152000
 	case 1152000:
 		return B1152000;
+#endif
+#ifdef B1500000
 	case 1500000:
 		return B1500000;
+#endif
 	default:
 		return B57600;
 	}