1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

security/openconnect: Fix build with libxml 2.12.0 and newer

Backport upstream commit 6c83dfd2e1cfb9539cd527424910298a52c6d11f

Reference:
6c83dfd2e1

PR:		279761
Reviewed by:	zi (maintainer)
This commit is contained in:
Daniel Engberg 2024-06-16 17:55:23 +02:00
parent c677c19421
commit 31800eab6e

View File

@ -1,14 +1,22 @@
--- openconnect-internal.h.orig 2022-08-27 20:09:15 UTC
--- openconnect-internal.h.orig 2023-05-19 16:12:15 UTC
+++ openconnect-internal.h
@@ -135,6 +135,11 @@
#include <spawn.h>
#endif
@@ -85,6 +85,7 @@
#define N_(s) s
#include <libxml/tree.h>
+#include <libxml/parser.h>
#include <zlib.h>
#ifdef _WIN32
@@ -133,6 +134,11 @@ extern char **environ;
extern char **environ;
#endif
#include <spawn.h>
+#endif
+
+
+#ifdef __FreeBSD__
+extern char **environ;
+#endif
+
#endif
/* Equivalent of "/dev/null" on Windows.
* See https://stackoverflow.com/a/44163934
*/