diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2014-01-08 15:25:20 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-01-08 15:25:20 +0100 |
commit | 96f92a1afac1599cc5f6128e7e9a43bdab220bc8 (patch) | |
tree | ed5f9d72b52b77ec8e6757e208eee2bef09e330b | |
parent | 8e0ad2647a9725f189ad880b437619667e81343c (diff) | |
download | busybox-w32-96f92a1afac1599cc5f6128e7e9a43bdab220bc8.tar.gz busybox-w32-96f92a1afac1599cc5f6128e7e9a43bdab220bc8.tar.bz2 busybox-w32-96f92a1afac1599cc5f6128e7e9a43bdab220bc8.zip |
libbb: FreeBSD fix for B<num> baud rate constants not fitting into a short.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | libbb/speed_table.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/speed_table.c b/libbb/speed_table.c index 45159f1f3..174d531b2 100644 --- a/libbb/speed_table.c +++ b/libbb/speed_table.c | |||
@@ -10,7 +10,12 @@ | |||
10 | #include "libbb.h" | 10 | #include "libbb.h" |
11 | 11 | ||
12 | struct speed_map { | 12 | struct speed_map { |
13 | #if defined __FreeBSD__ | ||
14 | /* On FreeBSD, B<num> constants don't fit into a short */ | ||
15 | unsigned speed; | ||
16 | #else | ||
13 | unsigned short speed; | 17 | unsigned short speed; |
18 | #endif | ||
14 | unsigned short value; | 19 | unsigned short value; |
15 | }; | 20 | }; |
16 | 21 | ||