From 0c22b4d8a1596e1d5b261041c36b474d05783373 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 16 Jun 2017 11:49:26 -0500 Subject: [PATCH] pkg: use pkgconf_pkg_t.realname instead of pkgconf_pkg_t.id for injecting the default provides entry This issue was noticed while porting pkgconf to Windows. ref #118 --- libpkgconf/pkg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpkgconf/pkg.c b/libpkgconf/pkg.c index 7aebd61..f5d618c 100644 --- a/libpkgconf/pkg.c +++ b/libpkgconf/pkg.c @@ -373,7 +373,7 @@ pkgconf_pkg_new_from_file(pkgconf_client_t *client, const char *filename, FILE * return NULL; } - pkgconf_dependency_add(client, &pkg->provides, pkg->id, pkg->version, PKGCONF_CMP_EQUAL); + pkgconf_dependency_add(client, &pkg->provides, pkg->realname, pkg->version, PKGCONF_CMP_EQUAL); return pkgconf_pkg_ref(client, pkg); }