summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/multipath-tools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-07-17 20:09:59 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-07-24 18:58:50 +0200
commit3868f2d1ad4b92feafc5feeac802858da439dd81 (patch)
treeb3c3eef741e45bdba96e4036cf0f6f8602c99320 /meta-oe/recipes-support/multipath-tools
parent77ff128358bcd5d30fe4ce4c961caed926c99810 (diff)
downloadmeta-openembedded-3868f2d1ad4b92feafc5feeac802858da439dd81.tar.gz
multipath-tools: Include limits.h for PATH_MAX
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/multipath-tools')
-rw-r--r--meta-oe/recipes-support/multipath-tools/files/0001-kpartx-include-limits.h-for-PATH_MAX.patch29
-rw-r--r--meta-oe/recipes-support/multipath-tools/multipath-tools_0.7.1.bb1
2 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/multipath-tools/files/0001-kpartx-include-limits.h-for-PATH_MAX.patch b/meta-oe/recipes-support/multipath-tools/files/0001-kpartx-include-limits.h-for-PATH_MAX.patch
new file mode 100644
index 000000000..46dd8e23b
--- /dev/null
+++ b/meta-oe/recipes-support/multipath-tools/files/0001-kpartx-include-limits.h-for-PATH_MAX.patch
@@ -0,0 +1,29 @@
1From 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
diff --git a/meta-oe/recipes-support/multipath-tools/multipath-tools_0.7.1.bb b/meta-oe/recipes-support/multipath-tools/multipath-tools_0.7.1.bb
index 93312116f..610ba7a94 100644
--- a/meta-oe/recipes-support/multipath-tools/multipath-tools_0.7.1.bb
+++ b/meta-oe/recipes-support/multipath-tools/multipath-tools_0.7.1.bb
@@ -45,6 +45,7 @@ SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http \
45 file://0012-multipath-tools-modify-Makefile.inc-for-cross-compil.patch \ 45 file://0012-multipath-tools-modify-Makefile.inc-for-cross-compil.patch \
46 file://0013-Always-use-devmapper.patch \ 46 file://0013-Always-use-devmapper.patch \
47 file://0014-Always-use-devmapper-for-kpartx.patch \ 47 file://0014-Always-use-devmapper-for-kpartx.patch \
48 file://0001-kpartx-include-limits.h-for-PATH_MAX.patch \
48 " 49 "
49LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2" 50LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2"
50 51