libarchive: open_zipped() does not need to check extensions for e.g. gzip
[oweals/busybox.git] / libbb / speed_table.c
index 6f95c54e68acf606c2d161c54d87189a2cbcdb3b..174d531b2733411ef80ad8a05ba4ddaff4789b50 100644 (file)
 #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;
 };
 
@@ -29,12 +34,12 @@ static const struct speed_map speeds[] = {
        {B2400, 2400},
        {B4800, 4800},
        {B9600, 9600},
-#ifdef B19200
+#ifdef B19200
        {B19200, 19200},
 #elif defined(EXTA)
        {EXTA, 19200},
 #endif
-#ifdef B38400
+#ifdef B38400
        {B38400, 38400/256 + 0x8000U},
 #elif defined(EXTB)
        {EXTB, 38400/256 + 0x8000U},