projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: run the wrt160nl parser only on the WRT160NL board
[openwrt.git]
/
tools
/
squashfs4
/
patches
/
160-expose_lzma_xz_options.patch
diff --git
a/tools/squashfs4/patches/160-expose_lzma_xz_options.patch
b/tools/squashfs4/patches/160-expose_lzma_xz_options.patch
index
b5fb80d
..
d606396
100644
(file)
--- 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
--- /dev/null
+++ b/squashfs-tools/lzma_xz_options.h
-@@ -0,0 +1,11
2
@@
+@@ -0,0 +1,11
5
@@
+#ifndef LZMA_XZ_OPTIONS_H
+#define LZMA_XZ_OPTIONS_H
+/*
+#ifndef LZMA_XZ_OPTIONS_H
+#define LZMA_XZ_OPTIONS_H
+/*
@@
-27,6
+27,9
@@
+#include <stdint.h>
+
+#ifndef linux
+#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
+#define __BYTE_ORDER BYTE_ORDER
+#define __BIG_ENDIAN BIG_ENDIAN
+#define __LITTLE_ENDIAN LITTLE_ENDIAN
@@
-414,7
+417,7
@@
+ if (size != sizeof(struct lzma_opts))
+ goto failed;
+
+ if (size != sizeof(struct lzma_opts))
+ goto failed;
+
-+ SQUASHFS_INSWAP_LZMA_COMP_OPTS(
&
comp_opts);
++ SQUASHFS_INSWAP_LZMA_COMP_OPTS(comp_opts);
+
+ options.flags = comp_opts->flags & LZMA_OPT_FLT_MASK;
+ options.preset = (comp_opts->flags & LZMA_OPT_PRE_MASK) >> LZMA_OPT_PRE_OFF;
+
+ options.flags = comp_opts->flags & LZMA_OPT_FLT_MASK;
+ options.preset = (comp_opts->flags & LZMA_OPT_PRE_MASK) >> LZMA_OPT_PRE_OFF;
This page took
0.027995 seconds
and
4
git commands to generate.