Commit 43013cbe authored by Bartłomiej Piotrowski's avatar Bartłomiej Piotrowski
Browse files

testing/rpm: fix uclibc build

parent 4db272e0
......@@ -2,7 +2,7 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=rpm
pkgver=4.11.0.1
pkgrel=1
pkgrel=2
pkgdesc="The RPM package manager"
url="http://www.rpm.org/"
arch="all"
......@@ -59,8 +59,8 @@ py_rpm() {
}
md5sums="b35f5359e0d4494d7b11e8d0c1512a0d rpm-4.11.0.1.tar.bz2
e20eb0419329aa42eabe4595ce7f4756 rpm-uclibc.patch"
528cdfc96ebfe8db3e389abdcf024d94 rpm-uclibc.patch"
sha256sums="98496c0c73095d7c66a8b6f1d8ab00998e1daf4e46a017ae74190c65132ffb21 rpm-4.11.0.1.tar.bz2
beefbc9a4b94f78e667c1d1932d2c726028583a374ec984db7aa4eb448143c2c rpm-uclibc.patch"
e963102ba11f83b691ad27ca7df9283524710a8fbd458e85e6ac84f3413778e9 rpm-uclibc.patch"
sha512sums="72bd3054b2d0def1e25fba7113eda14def38baef62b558e65cafaf3b374823d0905d982772cffddfd9dc6698eff293251acb2ace7dfda0964085669caa88d535 rpm-4.11.0.1.tar.bz2
601e6094f0fbf33c7435637d56814c829edbe9ce255052084cd40fc8bb6c05dd06faf72a880090c6930c71f3885b3d35f621f45898dd8492d9df3dc2b35dd0a6 rpm-uclibc.patch"
7a5796716b0f53e0c7fde5d7f42bd767eb2dd03fda03179779b7085e7f0dfc72a1c246621458d3bbe6227a5d59074b3f29147eea34d889a700b3ff47b799c2ce rpm-uclibc.patch"
......@@ -22,7 +22,7 @@ diff -rupN a/misc/fts.c b/misc/fts.c
-#include <string.h>
-#include <errno.h>
-#include "misc/fts.h"
+#ifndef __GLIBC__
+#if !defined(__GLIBC__) || defined(__UCLIBC__)
+# define _STAT_VER 0
+# define __fxstat64(_stat_ver, _fd, _sbp) fstat64((_fd), (_sbp))
+#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment