aboutsummaryrefslogtreecommitdiff
path: root/libbb/speed_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/speed_table.c')
-rw-r--r--libbb/speed_table.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/speed_table.c b/libbb/speed_table.c
index 45159f1f3..174d531b2 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;
};