pld rpm 5.4.17

Jakub Bogusz qboosh at pld-linux.org
Sat Mar 4 10:30:26 CET 2017


And one more patch, to make rpm4compat.h header usable again.
fdSize() became exported function, so stop defining static function of
the same name.


-- 
Jakub Bogusz    http://qboosh.pl/
-------------- next part --------------
fdSize is now extern function, declared in <rpmio.h>.
--- rpm-5.4.17/lib/rpm4compat.h.orig	2017-03-02 21:47:58.792117545 +0100
+++ rpm-5.4.17/lib/rpm4compat.h	2017-03-04 09:14:59.103993683 +0100
@@ -352,13 +352,6 @@
 	return rpmProblemGetDiskNeed(prob);
 }
 
-static inline off_t fdSize(FD_t fd){
-	struct stat sb;
-	Fstat(fd, &sb);
-	return sb.st_size;
-}
-
-
 static inline unsigned int rpmdbGetIteratorOffset(rpmdbMatchIterator mi) {
     return rpmmiInstance(mi);
 }


More information about the pld-devel-en mailing list