multipath-tools: add <sys/types.h> to libmultipath/util.h
PATCH 1/2 multipath-tools: add <sys/types.h> to libmultipath/util.h
Require by musl libc:
In file included from pgpolicies.c:9:0:
util.h:11:1: error: unknown type name ‘dev_t’
dev_t parse_devt(const char *dev_t);
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
Signed-off-by Xose Vazquez Perez <[email protected]>
--- libmultipath/util.h | 2 ++ 1 file changed, 2 insertions(+)
libmultipath/util.h +2 -0
@@ -1,6 +1,8 @@#ifndef _UTIL_H#define _UTIL_H +#include <sys/types.h> +size_t strchop (char *);int basenamecpy (const char * src,char * dst,int );int filepresent (char * run);
Signature · 6 lines
2.7.4 -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel
PATCH 2/2 multipath-tools: replace daddr_t type with long in kpartx/solaris.c
daddr_t is an unknow type for musl libc
musl-gcc output:
solaris.c:14:2: error: unknown type name ‘daddr_t’
Replace it with long.
Compiled tested only, please review.
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
Signed-off-by Xose Vazquez Perez <[email protected]>
--- kpartx/solaris.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kpartx/solaris.c +1 -1
@@ -11,7 +11,7 @@struct solaris_x86_slice {unsigned short s_tag;/* ID tag of partition */ unsigned short s_flag;/* permision flags */ -daddr_t s_start;/* start sector no of partition */ +long s_start;/* start sector no of partition */ long s_size;/* # of blocks in partition */ };
Signature · 6 lines
2.7.4 -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel