bhyve/slirp: Avoid a nested declaration of environ

Fixes:	0e62ebd201 ("bhyve: Move the slirp backend out into a separate process")
This commit is contained in:
Mark Johnston
2025-11-24 14:08:21 +00:00
parent 6739241224
commit bac572b2b1
+2 -1
View File
@@ -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;