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:
parent
8e0ad2647a
commit
96f92a1afa
@ -10,7 +10,12 @@
|
|||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
struct speed_map {
|
struct speed_map {
|
||||||
|
#if defined __FreeBSD__
|
||||||
|
/* On FreeBSD, B<num> constants don't fit into a short */
|
||||||
|
unsigned speed;
|
||||||
|
#else
|
||||||
unsigned short speed;
|
unsigned short speed;
|
||||||
|
#endif
|
||||||
unsigned short value;
|
unsigned short value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user