rpm: fix build

This commit is contained in:
Đoàn Trần Công Danh 2025-08-20 10:10:58 +07:00
parent ec317873be
commit 10bf9f76b2
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,10 @@
--- a/tools/rpmuncompress.c
+++ b/tools/rpmuncompress.c
@@ -2,6 +2,7 @@
#include <popt.h>
#include <errno.h>
+#include <libgen.h>
#include <stdio.h>
#include <string.h>

View file

@ -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)