ports/devel/firmware-utils/files/patch-ptgen.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
278 B
C

diff --git a/ptgen.c b/ptgen.c
index d94aabb..4733311 100644
--- ptgen.c
+++ ptgen.c
@@ -29,6 +29,8 @@
#include <ctype.h>
#include <fcntl.h>
+#include "freebsd.h"
+
#if __BYTE_ORDER == __BIG_ENDIAN
#define cpu_to_le16(x) bswap_16(x)
#elif __BYTE_ORDER == __LITTLE_ENDIAN