From: Denys Vlasenko Date: Wed, 8 Jan 2014 14:25:20 +0000 (+0100) Subject: libbb: FreeBSD fix for B baud rate constants not fitting into a short. X-Git-Tag: 1_23_0~235 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=96f92a1afac1599cc5f6128e7e9a43bdab220bc8;p=oweals%2Fbusybox.git libbb: FreeBSD fix for B baud rate constants not fitting into a short. Signed-off-by: Denys Vlasenko --- 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 @@ #include "libbb.h" struct speed_map { +#if defined __FreeBSD__ + /* On FreeBSD, B constants don't fit into a short */ + unsigned speed; +#else unsigned short speed; +#endif unsigned short value; };