summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-09-20 16:22:56 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-24 09:40:26 +0000
commit4972eddecde755045ec9598812f8c6c2b4fd243d (patch)
treeeb74d747af67a66b5873c6936ae9a99689d1250a /meta/recipes-kernel
parentd629fa1fbd85fed7fbab17e836a5b073b41a2cdd (diff)
downloadpoky-4972eddecde755045ec9598812f8c6c2b4fd243d.tar.gz
blktrace: Include <sys/types.h for dev_t
(From OE-Core rev: 1151b2402328f867dae11a5ef836218bbe66dd25) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/blktrace/blktrace/0001-include-sys-types.h-for-dev_t-definition.patch30
-rw-r--r--meta/recipes-kernel/blktrace/blktrace_git.bb4
2 files changed, 33 insertions, 1 deletions
diff --git a/meta/recipes-kernel/blktrace/blktrace/0001-include-sys-types.h-for-dev_t-definition.patch b/meta/recipes-kernel/blktrace/blktrace/0001-include-sys-types.h-for-dev_t-definition.patch
new file mode 100644
index 0000000000..a4b7157b4f
--- /dev/null
+++ b/meta/recipes-kernel/blktrace/blktrace/0001-include-sys-types.h-for-dev_t-definition.patch
@@ -0,0 +1,30 @@
1From 6b5bbdfaac7f216fe8a02c4cf29e5eb2aee5a409 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 15 Sep 2015 00:01:00 +0000
4Subject: [PATCH] include sys/types.h for dev_t definition
5
6Avoids the build failures when sys/types.h does not get included
7indirectly through other headers.
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11Upstream-Status: Submitted
12
13 blktrace.h | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/blktrace.h b/blktrace.h
17index 380aec7..944fc08 100644
18--- a/blktrace.h
19+++ b/blktrace.h
20@@ -5,6 +5,7 @@
21 #include <limits.h>
22 #include <byteswap.h>
23 #include <endian.h>
24+#include <sys/types.h>
25
26 #include "blktrace_api.h"
27 #include "rbtree.h"
28--
292.5.2
30
diff --git a/meta/recipes-kernel/blktrace/blktrace_git.bb b/meta/recipes-kernel/blktrace/blktrace_git.bb
index 5b0be425ec..957cb7096f 100644
--- a/meta/recipes-kernel/blktrace/blktrace_git.bb
+++ b/meta/recipes-kernel/blktrace/blktrace_git.bb
@@ -9,7 +9,9 @@ SRCREV = "43fc870ce04e963def45dfc0d1ed4ea21ef10d4b"
9PV = "1.1.0+git${SRCPV}" 9PV = "1.1.0+git${SRCPV}"
10 10
11SRC_URI = "git://git.kernel.dk/blktrace.git \ 11SRC_URI = "git://git.kernel.dk/blktrace.git \
12 file://ldflags.patch" 12 file://ldflags.patch \
13 file://0001-include-sys-types.h-for-dev_t-definition.patch \
14"
13 15
14S = "${WORKDIR}/git" 16S = "${WORKDIR}/git"
15 17