The branch main has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=bac572b2b1c9aec0ebfd3ae1fd02b314984cb716

commit bac572b2b1c9aec0ebfd3ae1fd02b314984cb716
Author:     Mark Johnston <[email protected]>
AuthorDate: 2025-11-24 14:08:21 +0000
Commit:     Mark Johnston <[email protected]>
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;

Reply via email to