libbb: FreeBSD fix for B<num> baud rate constants not fitting into a short.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2014-01-08 15:25:20 +01:00
parent 8e0ad2647a
commit 96f92a1afa

View File

@ -10,7 +10,12 @@
#include "libbb.h"
struct speed_map {
#if defined __FreeBSD__
/* On FreeBSD, B<num> constants don't fit into a short */
unsigned speed;
#else
unsigned short speed;
#endif
unsigned short value;
};