summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-08-31 15:59:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-12 22:48:37 +0100
commit0a671288e61724994d6e115e9b169490ff2807bb (patch)
tree67bed9da816c4738369b529e9173d919e19a4fc3
parent27a850ab08043c99681098183173e8f71e3d737d (diff)
downloadpoky-0a671288e61724994d6e115e9b169490ff2807bb.tar.gz
sudo: Include sys/types.h for id_t definition
This is exposed by musl, on glibc sys/types.h comes as indirect include from other include myriad. (From OE-Core rev: 7a55d298376b83248a4a35f3c01f3fd163908046) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/sudo/sudo/0001-Include-sys-types.h-for-id_t-definition.patch34
-rw-r--r--meta/recipes-extended/sudo/sudo_1.8.14p3.bb1
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-extended/sudo/sudo/0001-Include-sys-types.h-for-id_t-definition.patch b/meta/recipes-extended/sudo/sudo/0001-Include-sys-types.h-for-id_t-definition.patch
new file mode 100644
index 0000000000..eb36cd49bb
--- /dev/null
+++ b/meta/recipes-extended/sudo/sudo/0001-Include-sys-types.h-for-id_t-definition.patch
@@ -0,0 +1,34 @@
1From 386e2c2fa2ab2e02ef71c268a57205139be329ab Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 31 Aug 2015 07:07:49 +0000
4Subject: [PATCH] Include sys/types.h for id_t definition
5
6/sudo_util.h:219:14: error: unknown type name 'id_t'
7 __dso_public id_t sudo_strtoid_v1(const char *str, const char *sep,
8 char **endp, const char **errstr);
9 ^
10 make[1]: *** [preserve_fds.o] Error 1
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14Upstream-Status: Pending
15
16 include/sudo_util.h | 2 ++
17 1 file changed, 2 insertions(+)
18
19diff --git a/include/sudo_util.h b/include/sudo_util.h
20index 89c9f89..ac0855a 100644
21--- a/include/sudo_util.h
22+++ b/include/sudo_util.h
23@@ -17,6 +17,8 @@
24 #ifndef SUDO_UTIL_H
25 #define SUDO_UTIL_H
26
27+#include <sys/types.h>
28+
29 #ifdef HAVE_STDBOOL_H
30 # include <stdbool.h>
31 #else
32--
332.5.1
34
diff --git a/meta/recipes-extended/sudo/sudo_1.8.14p3.bb b/meta/recipes-extended/sudo/sudo_1.8.14p3.bb
index ea37aafc34..93b9bb43f6 100644
--- a/meta/recipes-extended/sudo/sudo_1.8.14p3.bb
+++ b/meta/recipes-extended/sudo/sudo_1.8.14p3.bb
@@ -3,6 +3,7 @@ require sudo.inc
3SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \ 3SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \
4 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \ 4 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \
5 file://0001-Use-correct-path-to-init.d-and-tmpfiles.d-files.patch \ 5 file://0001-Use-correct-path-to-init.d-and-tmpfiles.d-files.patch \
6 file://0001-Include-sys-types.h-for-id_t-definition.patch \
6 " 7 "
7 8
8PAM_SRC_URI = "file://sudo.pam" 9PAM_SRC_URI = "file://sudo.pam"