summaryrefslogtreecommitdiff
path: root/packages/blueprobe/blueprobe-0.18/uclibc-fix.patch
diff options
context:
space:
mode:
authorFlorian Boor <florian.boor@kernelconcepts.de>2007-05-20 11:23:31 +0000
committerFlorian Boor <florian.boor@kernelconcepts.de>2007-05-20 11:23:31 +0000
commitb7f5a6d711e44c3d245cdcb8fef3eac5349bf0de (patch)
tree532803f8df3bab90e28b72629b437fd3c2a23d19 /packages/blueprobe/blueprobe-0.18/uclibc-fix.patch
parent5951a9d7e48dc4b426460917dec370b687ac4756 (diff)
parent9375e3001c13e0ebe5290a024dc7c61d6696d4f6 (diff)
merge of '038f91aa279cf1b9a1f4f7bd7988f3768ee86ff0'
and '56dd632a3a9de2d8f4b9d335e96a43648c9cd3bd'
Diffstat (limited to 'packages/blueprobe/blueprobe-0.18/uclibc-fix.patch')
-rw-r--r--packages/blueprobe/blueprobe-0.18/uclibc-fix.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/blueprobe/blueprobe-0.18/uclibc-fix.patch b/packages/blueprobe/blueprobe-0.18/uclibc-fix.patch
new file mode 100644
index 0000000000..34a1711e60
--- /dev/null
+++ b/packages/blueprobe/blueprobe-0.18/uclibc-fix.patch
@@ -0,0 +1,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;
+ }