From f20f69055116f780c9f4e20f8928b2cc866869cb Mon Sep 17 00:00:00 2001 From: Mike Baker Date: Fri, 7 Jan 2005 07:02:37 +0000 Subject: [PATCH] fix freebsd build SVN-Revision: 192 --- obsolete-buildroot/sources/openwrt/tools/sstrip.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/obsolete-buildroot/sources/openwrt/tools/sstrip.c b/obsolete-buildroot/sources/openwrt/tools/sstrip.c index 1842f053c6..e820a44b88 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 -- 2.30.2