Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | Update two rpm headers to include other headers. |
| 2 | |
| 3 | Using rpmdb.h w/o including errno.h may result in a warning. |
| 4 | |
| 5 | Using rpmtag.h w/o also adding stdint.h will result in numerous failures |
| 6 | about unknown types on modern compilers. |
| 7 | |
| 8 | Upstream-Status: Submitted [RPM5 maintainer] |
| 9 | |
| 10 | Signed-off-by: Qing He <qing.he@intel.com> |
| 11 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | |
| 13 | Index: rpm-5.4.14/rpmdb/rpmdb.h |
| 14 | =================================================================== |
| 15 | --- rpm-5.4.14.orig/rpmdb/rpmdb.h |
| 16 | +++ rpm-5.4.14/rpmdb/rpmdb.h |
| 17 | @@ -9,6 +9,7 @@ |
| 18 | |
| 19 | #include <assert.h> |
| 20 | #include <mire.h> |
| 21 | +#include <errno.h> |
| 22 | |
| 23 | #include <rpmtypes.h> |
| 24 | #include <rpmtag.h> /* XXX Header typedef */ |
| 25 | Index: rpm-5.4.14/rpmdb/rpmtag.h |
| 26 | =================================================================== |
| 27 | --- rpm-5.4.14.orig/rpmdb/rpmtag.h |
| 28 | +++ rpm-5.4.14/rpmdb/rpmtag.h |
| 29 | @@ -7,6 +7,7 @@ |
| 30 | |
| 31 | #include <rpmiotypes.h> |
| 32 | #include <rpmsw.h> |
| 33 | +#include <stdint.h> |
| 34 | |
| 35 | #ifdef __cplusplus |
| 36 | extern "C" { |