diff options
Diffstat (limited to 'libbuild2')
-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; |