diff options
author | Bruno Damour <bruno@ruomad.net> | 2024-08-25 15:13:07 +0200 |
---|---|---|
committer | Daniel Engberg <diizzy@FreeBSD.org> | 2024-08-25 15:13:22 +0200 |
commit | db203a9d7a6ddbf29c75006f6126e5e6274e85fa (patch) | |
tree | ef30d1f1c58b5cc632c5a0548033199e7cb58cd2 /security/libpki/files/patch-src_pki__config.c | |
parent | audio/taglib: Update to 2.0.2 (diff) |
security/libpki: Fix build with libxml2 2.13
Backports from upstream repo and adapted to current release
PR: 279954
Diffstat (limited to 'security/libpki/files/patch-src_pki__config.c')
-rw-r--r-- | security/libpki/files/patch-src_pki__config.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/security/libpki/files/patch-src_pki__config.c b/security/libpki/files/patch-src_pki__config.c new file mode 100644 index 000000000000..776340729adf --- /dev/null +++ b/security/libpki/files/patch-src_pki__config.c @@ -0,0 +1,22 @@ +--- src/pki_config.c.orig 2024-08-12 07:36:06.493686000 +0200 ++++ src/pki_config.c 2024-08-12 07:40:19.265530000 +0200 +@@ -17,6 +17,7 @@ + + #define PKI_DEF_CONF_DIRS_SIZE 2 + #define LIBXML_MIN_VERSION 20600 ++#define LIBXML_212_VERSION 21200 + + #if LIBXML_VERSION < LIBXML_MIN_VERSION + #define xmlErrorPtr void * +@@ -30,7 +31,11 @@ + #endif + */ + ++#if LIBXML_VERSION >= LIBXML_212_VERSION ++void logXmlMessages( void *userData, const xmlError *error ) { ++#else + void logXmlMessages( void *userData, xmlErrorPtr error ) { ++#endif + #if LIBXML_VERSION >= LIBXML_MIN_VERSION + PKI_log_err( "XML I/O Error: %s", error->message); + #else |