diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-03-02 11:18:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-03-02 11:18:59 +0200 |
commit | 343d6e69e412166cfc21f268a51b692cb0201653 (patch) | |
tree | a6d444927ce0e2907cb2b448b56dd502200d159e | |
parent | 2485425dfcd85344dd0293c0b446c9bb0e28bf17 (diff) |
Adapt to interface changes in libpkgconf 1.9
Patch by Matthew Krupcale.
-rw-r--r-- | libbuild2/cc/pkgconfig-libpkgconf.cxx | 7 |
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; |