diff mbox

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

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

Commit Message

Xose Vazquez Perez May 17, 2017, 11:58 p.m. UTC
musl libc complains of
lopart.c:76:12: error: ‘PATH_MAX’ undeclared (first use in this function)

Cc: Martin Wilck <mwilck@suse.com>
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/lopart.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Christophe Varoqui June 21, 2017, 10:34 a.m. UTC | #1
Merged,
Thanks.

On Thu, May 18, 2017 at 1:58 AM, Xose Vazquez Perez <xose.vazquez@gmail.com>
wrote:

> musl libc complains of
> lopart.c:76:12: error: ‘PATH_MAX’ undeclared (first use in this function)
>
> Cc: Martin Wilck <mwilck@suse.com>
> 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/lopart.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/kpartx/lopart.c b/kpartx/lopart.c
> index 7005445..4e6dab4 100644
> --- a/kpartx/lopart.c
> +++ b/kpartx/lopart.c
> @@ -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
>
>
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
diff mbox

Patch

diff --git a/kpartx/lopart.c b/kpartx/lopart.c
index 7005445..4e6dab4 100644
--- a/kpartx/lopart.c
+++ b/kpartx/lopart.c
@@ -29,6 +29,7 @@ 
 #include <dirent.h>
 #include <sys/sysmacros.h>
 #include <linux/loop.h>
+#include <limits.h>
 
 #include "lopart.h"
 #include "xstrncpy.h"