Skip to contentSkip to conversation

multipath-tools: add limits.h to kpartx/lopart.c

PATCH In review Xose Vazquez Perez 2 participants 2 messages May 17, 2017 – Jun 21, 2017 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: add limits.h to kpartx/lopart.c

musl libc complains of
lopart.c:76:12: error: ‘PATH_MAX’ undeclared (first use in this function)

Cc Martin Wilck <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 kpartx/lopart.c | 1 +
 1 file changed, 1 insertion(+)
kpartx/lopart.c +1 -0
index 7005445..4e6dab4 100644
@@ -29,6 +29,7 @@
 #include <dirent.h>
 #include <sys/sysmacros.h>
 #include <linux/loop.h>
+#include <limits.h>
 
 #include "lopart.h"
 #include "xstrncpy.h"
Signature · 6 lines
2.13.0

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
#1 lore raw

Merged,
Thanks.

Quoted 27 lines · Xose Vazquez Perez

musl libc complains of
lopart.c:76:12: error: ‘PATH_MAX’ undeclared (first use in this function)

Cc Martin Wilck <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 kpartx/lopart.c | 1 +
 1 file changed, 1 insertion(+)
kpartx/lopart.c +1 -1
index 7005445..4e6dab4 100644
@@ -29,6 +29,7 @@
 #include <dirent.h>
 #include <sys/sysmacros.h>
 #include <linux/loop.h>
+#include <limits.h>
 
 #include "lopart.h"
 #include "xstrncpy.h"
--

2.13.0