libbb: FreeBSD fix for B<num> baud rate constants not fitting into a short.
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 8 Jan 2014 14:25:20 +0000 (15:25 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 8 Jan 2014 14:25:20 +0000 (15:25 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/speed_table.c

index 45159f1f3b8e347c33f31a0aa2fdae972f85217b..174d531b2733411ef80ad8a05ba4ddaff4789b50 100644 (file)
 #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;
 };