tools/squashfs4: include sysmacros.h explicitly
[openwrt/staging/wigyori.git] / tools / squashfs4 / patches / 170-add_support_for_LZMA_MAGIC_to_unsqashfs.patch
index ad69b190ea9f1d2335d7b83e8b0a26700dd5c05c..bc7d6c7a4a06b7ed62233a263dce68d935317621 100644 (file)
@@ -16,7 +16,7 @@
  #define SQUASHFS_METADATA_LOG         13
 --- a/squashfs-tools/unsquashfs.c
 +++ b/squashfs-tools/unsquashfs.c
-@@ -1463,10 +1463,12 @@ int read_super(char *source)
+@@ -1464,10 +1464,12 @@ int read_super(char *source)
         */
        read_fs_bytes(fd, SQUASHFS_START, sizeof(struct squashfs_super_block),
                &sBlk_4);
@@ -31,7 +31,7 @@
                        sBlk_4.s_minor == 0) {
                s_ops.squashfs_opendir = squashfs_opendir_4;
                s_ops.read_fragment = read_fragment_4;
-@@ -1479,7 +1481,11 @@ int read_super(char *source)
+@@ -1480,7 +1482,11 @@ int read_super(char *source)
                /*
                 * Check the compression type
                 */
@@ -44,7 +44,7 @@
                return TRUE;
        }
  
-@@ -1494,8 +1500,10 @@ int read_super(char *source)
+@@ -1495,8 +1501,10 @@ int read_super(char *source)
         * Check it is a SQUASHFS superblock
         */
        swap = 0;
@@ -57,7 +57,7 @@
                        squashfs_super_block_3 sblk;
                        ERROR("Reading a different endian SQUASHFS filesystem "
                                "on %s\n", source);
-@@ -1573,7 +1581,11 @@ int read_super(char *source)
+@@ -1574,7 +1582,11 @@ int read_super(char *source)
        /*
         * 1.x, 2.x and 3.x filesystems use gzip compression.
         */