aboutsummaryrefslogtreecommitdiffstats
path: root/rpm5compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'rpm5compat.h')
-rw-r--r--rpm5compat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpm5compat.h b/rpm5compat.h
index e98d343..2fbcef2 100644
--- a/rpm5compat.h
+++ b/rpm5compat.h
@@ -128,4 +128,9 @@ static int rpmEVRcompare(const EVR_t a, const EVR_t b) {
return rc;
}
+static inline int Fstat(FD_t fd, struct stat * st)
+{
+ return fstat(Fileno(fd), st);
+}
+
#endif /* H_RPM5COMPAT */