git: bac572b2b1c9 - main - bhyve/slirp: Avoid a nested declaration of environ
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Nov 2025 14:29:07 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=bac572b2b1c9aec0ebfd3ae1fd02b314984cb716
commit bac572b2b1c9aec0ebfd3ae1fd02b314984cb716
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-11-24 14:08:21 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-11-24 14:28:42 +0000
bhyve/slirp: Avoid a nested declaration of environ
Fixes: 0e62ebd20172 ("bhyve: Move the slirp backend out into a separate process")
---
usr.sbin/bhyve/net_backend_slirp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/usr.sbin/bhyve/net_backend_slirp.c b/usr.sbin/bhyve/net_backend_slirp.c
index c98e54b2ee88..f2b483c5e314 100644
--- a/usr.sbin/bhyve/net_backend_slirp.c
+++ b/usr.sbin/bhyve/net_backend_slirp.c
@@ -73,11 +73,12 @@ struct slirp_priv {
struct mevent *mevp;
};
+extern char **environ;
+
static int
slirp_init(struct net_backend *be, const char *devname __unused,
nvlist_t *nvl, net_be_rxeof_t cb, void *param)
{
- extern char **environ;
struct slirp_priv *priv = NET_BE_PRIV(be);
nvlist_t *config;
posix_spawn_file_actions_t fa;