diff --git a/srcpkgs/rpm/patches/include.patch b/srcpkgs/rpm/patches/include.patch new file mode 100644 index 00000000000..e2f060f8e58 --- /dev/null +++ b/srcpkgs/rpm/patches/include.patch @@ -0,0 +1,10 @@ +--- a/tools/rpmuncompress.c ++++ b/tools/rpmuncompress.c +@@ -2,6 +2,7 @@ + + #include + #include ++#include + #include + #include + diff --git a/srcpkgs/rpm/patches/python.patch b/srcpkgs/rpm/patches/python.patch new file mode 100644 index 00000000000..d2cbea130ae --- /dev/null +++ b/srcpkgs/rpm/patches/python.patch @@ -0,0 +1,14 @@ +--- a/python/header-py.c ++++ b/python/header-py.c +@@ -316,9 +316,9 @@ static PyObject * hdr_dsOfHeader(PyObjec + "(Oi)", s, RPMTAG_NEVR); + } + +-static long hdr_hash(PyObject * h) ++static int hdr_hash(PyObject * h) + { +- return (long) h; ++ return (int) h; + } + + static PyObject * hdr_reduce(hdrObject *s)