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

Denys Vlasenko vda.linux at googlemail.com
Wed Jan 8 14:25:20 UTC 2014


commit: http://git.busybox.net/busybox/commit/?id=96f92a1afac1599cc5f6128e7e9a43bdab220bc8
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 libbb/speed_table.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/libbb/speed_table.c b/libbb/speed_table.c
index 45159f1..174d531 100644
--- 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;
 };
 


More information about the busybox-cvs mailing list