summaryrefslogtreecommitdiffstats
path: root/tools/squashfs4/patches
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-07-31 17:59:25 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-07-31 17:59:25 +0000
commit921227360df9cd1d3500043bc7277426a0c51487 (patch)
treee344e1bcb98765266203c313abb05dbfd90cbacc /tools/squashfs4/patches
parent324bb5216a8d929b4fa61c8e5a1aff0a484dceba (diff)
squashfs4: add missing include for freebsd (patch from #9842)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27850 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/squashfs4/patches')
-rw-r--r--tools/squashfs4/patches/160-expose_lzma_xz_options.patch5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/squashfs4/patches/160-expose_lzma_xz_options.patch b/tools/squashfs4/patches/160-expose_lzma_xz_options.patch
index b5fb80dff..61f5e6c37 100644
--- a/tools/squashfs4/patches/160-expose_lzma_xz_options.patch
+++ b/tools/squashfs4/patches/160-expose_lzma_xz_options.patch
@@ -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