aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/pkgconfig-libpkgconf.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-03-02 11:18:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-03-02 11:18:59 +0200
commit343d6e69e412166cfc21f268a51b692cb0201653 (patch)
treea6d444927ce0e2907cb2b448b56dd502200d159e /libbuild2/cc/pkgconfig-libpkgconf.cxx
parent2485425dfcd85344dd0293c0b446c9bb0e28bf17 (diff)
Adapt to interface changes in libpkgconf 1.9
Patch by Matthew Krupcale.
Diffstat (limited to 'libbuild2/cc/pkgconfig-libpkgconf.cxx')
-rw-r--r--libbuild2/cc/pkgconfig-libpkgconf.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/libbuild2/cc/pkgconfig-libpkgconf.cxx b/libbuild2/cc/pkgconfig-libpkgconf.cxx
index 81a96c3..f3754d3 100644
--- a/libbuild2/cc/pkgconfig-libpkgconf.cxx
+++ b/libbuild2/cc/pkgconfig-libpkgconf.cxx
@@ -81,10 +81,17 @@ namespace build2
#endif
;
+#if defined(LIBPKGCONF_VERSION) && LIBPKGCONF_VERSION >= 10900
+ static bool
+ pkgconf_error_handler (const char* msg,
+ const pkgconf_client_t*,
+ void*)
+#else
static bool
pkgconf_error_handler (const char* msg,
const pkgconf_client_t*,
const void*)
+#endif
{
error << runtime_error (msg); // Sanitize the message (trailing dot).
return true;