From 4b599848a8eac9cb12151c81c8815af2c1e03691 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 23 Apr 2021 10:41:11 -0600 Subject: bsd-user: style tweak: move extern to header file extern char **environ has no standard home, so move the declaration from the .c file to a handy .h file. Since this is a standard, old-school UNIX interface dating from the 5th edition, it's not quite the same issue that the rule is supposed to protect against, though. Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/qemu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bsd-user/qemu.h') diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index 7ccc8ad..5a82722 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -27,6 +27,8 @@ #include "exec/user/abitypes.h" +extern char **environ; + enum BSDType { target_freebsd, target_netbsd, -- cgit v1.1