dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] multipath-tools: add <sys/types.h> to libmultipath/util.h
@ 2016-08-04 18:24 Xose Vazquez Perez
  2016-08-04 18:24 ` [PATCH 2/2] multipath-tools: replace daddr_t type with long in kpartx/solaris.c Xose Vazquez Perez
  0 siblings, 1 reply; 2+ messages in thread
From: Xose Vazquez Perez @ 2016-08-04 18:24 UTC (permalink / raw)
  Cc: device-mapper development, Xose Vazquez Perez

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 <christophe.varoqui@opensvc.com>
Cc: device-mapper development <dm-devel@redhat.com>
Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
---
 libmultipath/util.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libmultipath/util.h b/libmultipath/util.h
index 257912c..8861085 100644
--- a/libmultipath/util.h
+++ b/libmultipath/util.h
@@ -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);
-- 
2.7.4

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] multipath-tools: replace daddr_t type with long in kpartx/solaris.c
  2016-08-04 18:24 [PATCH 1/2] multipath-tools: add <sys/types.h> to libmultipath/util.h Xose Vazquez Perez
@ 2016-08-04 18:24 ` Xose Vazquez Perez
  0 siblings, 0 replies; 2+ messages in thread
From: Xose Vazquez Perez @ 2016-08-04 18:24 UTC (permalink / raw)
  Cc: device-mapper development, Xose Vazquez Perez

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 <christophe.varoqui@opensvc.com>
Cc: device-mapper development <dm-devel@redhat.com>
Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
---
 kpartx/solaris.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kpartx/solaris.c b/kpartx/solaris.c
index 355a6cb..01da379 100644
--- a/kpartx/solaris.c
+++ b/kpartx/solaris.c
@@ -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 */
 };
 
-- 
2.7.4

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-04 18:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-04 18:24 [PATCH 1/2] multipath-tools: add <sys/types.h> to libmultipath/util.h Xose Vazquez Perez
2016-08-04 18:24 ` [PATCH 2/2] multipath-tools: replace daddr_t type with long in kpartx/solaris.c Xose Vazquez Perez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).