diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-01-19 19:14:33 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-01-19 19:14:33 +0000 |
commit | 4f8b92f3054719274288b0e7633b7c5fd99df53f (patch) | |
tree | 26b1b65098dc356ded9f5a434c9566dc523a9b1d /package/microcom/microcom-102-001-speed-defines.patch | |
parent | f74967da5cedf16a5ae3fa4d65b8e6272b8f20dc (diff) | |
download | buildroot-novena-4f8b92f3054719274288b0e7633b7c5fd99df53f.tar.gz buildroot-novena-4f8b92f3054719274288b0e7633b7c5fd99df53f.zip |
- make it build.. compile-tested only. Closes #970
Diffstat (limited to 'package/microcom/microcom-102-001-speed-defines.patch')
-rw-r--r-- | package/microcom/microcom-102-001-speed-defines.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/package/microcom/microcom-102-001-speed-defines.patch b/package/microcom/microcom-102-001-speed-defines.patch new file mode 100644 index 000000000..b9aece841 --- /dev/null +++ b/package/microcom/microcom-102-001-speed-defines.patch @@ -0,0 +1,34 @@ +diff -rdup microcom-1.02.orig/help.c microcom-1.02/help.c +--- microcom-1.02.orig/help.c 2000-07-30 06:15:47.000000000 +0200 ++++ microcom-1.02/help.c 2007-01-19 19:44:19.000000000 +0100 +@@ -273,12 +273,29 @@ static void help_set_speed(int fd, char + B19200, + B38400, + B57600, ++#if defined B115200 + B115200, ++#endif ++#if defined B230400 + B230400, ++#endif ++#if defined B460800 + B460800 ++#endif + }; ++#undef __STOPCHAR ++#if defined B115200 ++#define __STOPCHAR 'h' ++#endif ++#if defined B230400 ++#define __STOPCHAR 'i' ++#endif ++#if defined B460800 ++#define __STOPCHAR 'j' ++#endif + +- if (c < 'a' && c > 'j') { ++ ++ if (c < 'a' && c > __STOPCHAR) { + if (c == '~') { + help_speed(); + return; |