mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-30 15:10:36 +00:00
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"
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user