squashfs-tools/9000-makedev-miss-headfile.patch
2019-09-30 11:17:34 -04:00

28 lines
981 B
Diff

From: yujinyang <yujinyang1@huawei.com>
Date: Wed Dec 12 06:09:17 2018 -0500
Subject: fix makedev miss headfile
diff -Nur squashfs4.3-old/squashfs-tools/mksquashfs.c squashfs4.3/squashfs-tools/mksquashfs.c
--- squashfs4.3-old/squashfs-tools/mksquashfs.c 2018-12-12 15:59:59.805000000 +0800
+++ squashfs4.3/squashfs-tools/mksquashfs.c 2018-12-12 09:20:18.000000000 +0800
@@ -50,6 +50,7 @@
#include <sys/wait.h>
#include <limits.h>
#include <ctype.h>
+#include <sys/sysmacros.h>
#ifndef linux
#define __BYTE_ORDER BYTE_ORDER
diff -Nur squashfs4.3-old/squashfs-tools/unsquashfs.c squashfs4.3/squashfs-tools/unsquashfs.c
--- squashfs4.3-old/squashfs-tools/unsquashfs.c 2018-12-12 15:59:59.802000000 +0800
+++ squashfs4.3/squashfs-tools/unsquashfs.c 2018-12-12 09:24:57.000000000 +0800
@@ -30,7 +30,7 @@
#include "xattr.h"
#include "unsquashfs_info.h"
#include "stdarg.h"
-
+#include <sys/sysmacros.h>
#include <sys/sysinfo.h>
#include <sys/types.h>
#include <sys/time.h>