aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sudo/sudo/0001-Include-sys-types.h-for-id_t-definition.patch
blob: eb36cd49bbae65f0f1aa8a288bef92e6562313de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 386e2c2fa2ab2e02ef71c268a57205139be329ab Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 31 Aug 2015 07:07:49 +0000
Subject: [PATCH] Include sys/types.h for id_t definition

/sudo_util.h:219:14: error: unknown type name 'id_t'
 __dso_public id_t sudo_strtoid_v1(const char *str, const char *sep,
 char **endp, const char **errstr);
               ^
	       make[1]: *** [preserve_fds.o] Error 1

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending

 include/sudo_util.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/sudo_util.h b/include/sudo_util.h
index 89c9f89..ac0855a 100644
--- a/include/sudo_util.h
+++ b/include/sudo_util.h
@@ -17,6 +17,8 @@
 #ifndef SUDO_UTIL_H
 #define SUDO_UTIL_H
 
+#include <sys/types.h>
+
 #ifdef HAVE_STDBOOL_H
 # include <stdbool.h>
 #else
-- 
2.5.1