diff mbox

[1/2] multipath-tools: add <sys/types.h> to libmultipath/util.h

Message ID 1470335072-13867-1-git-send-email-xose.vazquez@gmail.com (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show

Commit Message

Xose Vazquez Perez Aug. 4, 2016, 6:24 p.m. UTC
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 mbox

Patch

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);