squashfs4: add missing include for freebsd (patch from #9842)
authorFelix Fietkau <nbd@openwrt.org>
Sun, 31 Jul 2011 17:59:25 +0000 (17:59 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 31 Jul 2011 17:59:25 +0000 (17:59 +0000)
SVN-Revision: 27850

tools/squashfs4/patches/160-expose_lzma_xz_options.patch

index b5fb80dffaafa15b94cff81b067450b453a577a4..61f5e6c37d1037b3dcb36941bb281ef15d7c707c 100644 (file)
@@ -1,6 +1,6 @@
 --- /dev/null
 +++ b/squashfs-tools/lzma_xz_options.h
-@@ -0,0 +1,112 @@
+@@ -0,0 +1,115 @@
 +#ifndef LZMA_XZ_OPTIONS_H
 +#define LZMA_XZ_OPTIONS_H
 +/*
@@ -27,6 +27,9 @@
 +#include <stdint.h>
 +
 +#ifndef linux
++#ifdef __FreeBSD__
++#include <machine/endian.h>
++#endif
 +#define __BYTE_ORDER BYTE_ORDER
 +#define __BIG_ENDIAN BIG_ENDIAN
 +#define __LITTLE_ENDIAN LITTLE_ENDIAN