X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/097635b79bc6ddd6066a8369db6e298a25daa96e..fe5e3e7527cfae05395069bc7e22d2a6e54517d6:/obsolete-buildroot/sources/openwrt/tools/sstrip.c diff --git a/obsolete-buildroot/sources/openwrt/tools/sstrip.c b/obsolete-buildroot/sources/openwrt/tools/sstrip.c index 1842f053c..e820a44b8 100644 --- a/obsolete-buildroot/sources/openwrt/tools/sstrip.c +++ b/obsolete-buildroot/sources/openwrt/tools/sstrip.c @@ -59,8 +59,23 @@ #include #include #include +#ifdef __FreeBSD__ +/** + * This seems to work on FreeBSD 5.3, should + * work on all newer versions as well. I have + * no idea if it will work on versions < 5.3 + * + * Joe Estock (guru) + */ +#include +#define bswap_64 __bswap64 +#define bswap_32 __bswap32 +#define bswap_16 __bswap16 +#else #include #include +#endif /* defined(__FreeBSD__) */ + #ifndef TRUE #define TRUE 1