diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-10-08 00:07:32 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-10-08 12:53:25 -0500 |
commit | e2415161de74935a3a66765ffb38132c209259c3 (patch) | |
tree | d7bca84339cb412434fbb18bb128329a953f7eca /gatchat/gattty.c | |
parent | f9db94cd739ba73f848114ed0043412906e5c8b4 (diff) | |
download | ofono-e2415161de74935a3a66765ffb38132c209259c3.tar.bz2 |
Fix: Make compile on some obscure platforms
Diffstat (limited to 'gatchat/gattty.c')
-rw-r--r-- | gatchat/gattty.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gatchat/gattty.c b/gatchat/gattty.c index e1dfe241..63d26d43 100644 --- a/gatchat/gattty.c +++ b/gatchat/gattty.c @@ -72,14 +72,22 @@ static gboolean set_baud(const char *baud, struct termios *ti) speed = B1500000; else if (g_str_equal(baud, "2000000")) speed = B2000000; +#ifdef B2500000 else if (g_str_equal(baud, "2500000")) speed = B2500000; +#endif +#ifdef B3000000 else if (g_str_equal(baud, "3000000")) speed = B3000000; +#endif +#ifdef B3500000 else if (g_str_equal(baud, "3500000")) speed = B3500000; +#endif +#ifdef B4000000 else if (g_str_equal(baud, "4000000")) speed = B4000000; +#endif else return FALSE; |