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

Index: blueprobe-0.18/blueprobe.c
===================================================================
--- blueprobe-0.18.orig/blueprobe.c	2006-10-12 20:33:01.000000000 +1000
+++ blueprobe-0.18/blueprobe.c	2007-05-17 12:29:20.000000000 +1000
@@ -25,14 +25,22 @@
     return B57600;
   case 115200:
     return B115200;
+#ifdef B230400
   case 230400:
     return B230400;
+#endif
+#ifdef B460800
   case 460800:
     return B460800;
+#endif
+#ifdef B921600
   case 921600:
     return B921600;
+#endif
+#ifdef B1000000
   case 1000000:
     return B1000000;
+#endif
   default:
     return B57600;
   }