pass HOST_ variables, not BUILD_
[buildroot.git] / package / microcom / microcom-102-001-speed-defines.patch
blobb9aece841980b766e8155e25108dd3ac31b74a51
1 diff -rdup microcom-1.02.orig/help.c microcom-1.02/help.c
2 --- microcom-1.02.orig/help.c 2000-07-30 06:15:47.000000000 +0200
3 +++ microcom-1.02/help.c 2007-01-19 19:44:19.000000000 +0100
4 @@ -273,12 +273,29 @@ static void help_set_speed(int fd, char
5 B19200,
6 B38400,
7 B57600,
8 +#if defined B115200
9 B115200,
10 +#endif
11 +#if defined B230400
12 B230400,
13 +#endif
14 +#if defined B460800
15 B460800
16 +#endif
18 +#undef __STOPCHAR
19 +#if defined B115200
20 +#define __STOPCHAR 'h'
21 +#endif
22 +#if defined B230400
23 +#define __STOPCHAR 'i'
24 +#endif
25 +#if defined B460800
26 +#define __STOPCHAR 'j'
27 +#endif
29 - if (c < 'a' && c > 'j') {
31 + if (c < 'a' && c > __STOPCHAR) {
32 if (c == '~') {
33 help_speed();
34 return;