projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e0ad26
)
libbb: FreeBSD fix for B<num> baud rate constants not fitting into a short.
author
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 8 Jan 2014 14:25:20 +0000
(15:25 +0100)
committer
Denys 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
patch
|
blob
|
history
diff --git
a/libbb/speed_table.c
b/libbb/speed_table.c
index 45159f1f3b8e347c33f31a0aa2fdae972f85217b..174d531b2733411ef80ad8a05ba4ddaff4789b50 100644
(file)
--- 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<num> constants don't fit into a short */
+ unsigned speed;
+#else
unsigned short speed;
+#endif
unsigned short value;
};