xbps: added patch from master branch to build on x86.
This commit is contained in:
parent
37ea283df2
commit
d11c1c344d
1 changed files with 28 additions and 0 deletions
|
@ -0,0 +1,28 @@
|
|||
commit 5917fc74041d8e063b4945967fffce9d40e5c107
|
||||
Author: Juan RP <xtraeme@gmail.com>
|
||||
Date: Mon Jul 11 12:12:55 2011 +0200
|
||||
|
||||
xbps-repo: printf uint64_t with PRIu64.
|
||||
|
||||
diff --git a/bin/xbps-repo/main.c b/bin/xbps-repo/main.c
|
||||
index a7ac504..5d61dc0 100644
|
||||
--- bin/xbps-repo/main.c
|
||||
+++ bin/xbps-repo/main.c
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <limits.h>
|
||||
#include <libgen.h>
|
||||
#include <unistd.h>
|
||||
+#include <inttypes.h>
|
||||
|
||||
#include <xbps_api.h>
|
||||
#include "defs.h"
|
||||
@@ -59,7 +60,8 @@ repo_list_uri_cb(struct repository_pool_index *rpi, void *arg, bool *done)
|
||||
prop_dictionary_get_cstring_nocopy(rpi->rpi_repod,
|
||||
"pkgindex-version", &pkgidx);
|
||||
prop_dictionary_get_uint64(rpi->rpi_repod, "total-pkgs", &npkgs);
|
||||
- printf("%s (index %s, %zu packages)\n", rpi->rpi_uri, pkgidx, npkgs);
|
||||
+ printf("%s (index %s, " "%" PRIu64 " packages)\n",
|
||||
+ rpi->rpi_uri, pkgidx, npkgs);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue