summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm/header-include-fix.patch
blob: e72df45b5a4870cb22e718bd266421869dbf4258 (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
35
36
Update two rpm headers to include other headers.

Using rpmdb.h w/o including errno.h may result in a warning.

Using rpmtag.h w/o also adding stdint.h will result in numerous failures
about unknown types on modern compilers.

Upstream-Status: Submitted [RPM5 maintainer]

Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>

Index: rpm-5.4.14/rpmdb/rpmdb.h
===================================================================
--- rpm-5.4.14.orig/rpmdb/rpmdb.h
+++ rpm-5.4.14/rpmdb/rpmdb.h
@@ -9,6 +9,7 @@
 
 #include <assert.h>
 #include <mire.h>
+#include <errno.h>
 
 #include <rpmtypes.h>
 #include <rpmtag.h>	/* XXX Header typedef */
Index: rpm-5.4.14/rpmdb/rpmtag.h
===================================================================
--- rpm-5.4.14.orig/rpmdb/rpmtag.h
+++ rpm-5.4.14/rpmdb/rpmtag.h
@@ -7,6 +7,7 @@
 
 #include <rpmiotypes.h>
 #include <rpmsw.h>
+#include <stdint.h>
 
 #ifdef __cplusplus
 extern "C" {