commit ba1ba42d897487ff48532e81920c88963aa53a7e
parent 374e92246a19df53d4882d4ece39f31b4aabccee
Author: Michael Forney <mforney@mforney.org>
Date: Thu, 20 Feb 2020 23:31:55 -0800
launch: Unconditionally declare environ
The header declaration in unistd.h is non-standard, and the portable
way to use it is just declare it explicitly everywhere.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/launch/launch.c b/launch/launch.c
@@ -51,7 +51,6 @@
#endif
#ifdef __NetBSD__
#include <dev/wscons/wsdisplay_usl_io.h>
-extern char **environ;
#else
#include <linux/input.h>
#include <linux/kd.h>
@@ -425,6 +424,7 @@ run(int fd) {
int
main(int argc, char *argv[])
{
+ extern char **environ;
int option;
char *vt = NULL, buf[64];
struct sigaction action = {