blob: 46dd8e23b401a202692b2b338086746b029234b5 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001From 330028a5a904a0da3788141030e614569dc5aaa7 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 14 Jul 2017 23:28:12 -0700
4Subject: [PATCH] kpartx: include limits.h for PATH_MAX
5
6lopart.c:76:12: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'INT8_MAX'?
7 char path[PATH_MAX];
8 ^~~~~~~~
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 kpartx/lopart.c | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/kpartx/lopart.c b/kpartx/lopart.c
16index 7005445..5efe5dc 100644
17--- a/kpartx/lopart.c
18+++ b/kpartx/lopart.c
19@@ -22,6 +22,7 @@
20 #include <errno.h>
21 #include <stdlib.h>
22 #include <unistd.h>
23+#include <limits.h>
24 #include <sys/ioctl.h>
25 #include <sys/stat.h>
26 #include <sys/mman.h>
27--
282.13.3
29