Date: Thu, 31 May 2007 16:00:12 +0100 From: Bruce M Simpson <bms@incunabulum.net> To: freebsd-mips@freebsd.org Subject: [PATCH] build trx firmware tool on FreeBSD Message-ID: <465EE2FC.7030900@incunabulum.net>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] As requested, here is a patch to build the TRX firmware wrapping tool (for Broadcom 47xx based devices such as the Linksys WRT) on FreeBSD. [-- Attachment #2 --] --- trx.c.orig Sat Feb 11 06:04:31 2006 +++ trx.c Sat Feb 11 06:06:12 2006 @@ -44,6 +44,11 @@ #include <string.h> #include <errno.h> #include <unistd.h> + +#ifdef __FreeBSD__ +#include <sys/endian.h> +#define STORE32_LE(X) htole32(X) +#else #include <endian.h> #include <byteswap.h> @@ -53,6 +58,7 @@ #define STORE32_LE(X) (X) #else #error unkown endianness! +#endif #endif uint32_t crc32buf(char *buf, size_t len);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?465EE2FC.7030900>
