From 96f92a1afac1599cc5f6128e7e9a43bdab220bc8 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 8 Jan 2014 15:25:20 +0100 Subject: [PATCH] libbb: FreeBSD fix for B baud rate constants not fitting into a short. Signed-off-by: Denys Vlasenko --- libbb/speed_table.c | 5 +++++ 1 file changed, 5 insertions(+) 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; }; -- 2.25.1