ports/devel/firmware-utils/files/patch-mkzynfw.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

18 lines
412 B
C

diff --git a/mkzynfw.c b/mkzynfw.c
index 36c176f..22d8bd3 100644
--- mkzynfw.c
+++ mkzynfw.c
@@ -23,11 +23,12 @@
#include <stdarg.h>
#include <errno.h>
#include <sys/stat.h>
-#include <endian.h> /* for __BYTE_ORDER */
+#include <sys/endian.h> /* for __BYTE_ORDER */
#if defined(__CYGWIN__)
# include <byteswap.h>
#endif
+#include "freebsd.h"
#include "zynos.h"
#if (__BYTE_ORDER == __LITTLE_ENDIAN)