ports/devel/firmware-utils/files/patch-trx.c
Eitan Adler 5a32450718 A collection of utilities to create firmware images for embedded devices,
including many wireless routers from many vendors.

The utilities are collected and maintained by the OpenWrt router project.

WWW: http://www.openwrt.org/

PR:		ports/163537
Submitted by:	Stefan Bethke <stb@lassitu.de>
Feature safe:	yes
2011-12-25 05:10:28 +00:00

13 lines
267 B
C

diff --git a/trx.c b/trx.c
index 8e95d98..765f83c 100644
--- trx.c
+++ trx.c
@@ -51,6 +51,8 @@
#include <errno.h>
#include <unistd.h>
+#include "freebsd.h"
+
#if __BYTE_ORDER == __BIG_ENDIAN
#define STORE32_LE(X) bswap_32(X)
#define LOAD32_LE(X) bswap_32(X)