commit ba1ba42
Michael Forney
·
2020-02-21 07:31:55 +0000 UTC
parent 374e922
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.
1 files changed,
+1,
-1
+1,
-1
1@@ -51,7 +51,6 @@
2 #endif
3 #ifdef __NetBSD__
4 #include <dev/wscons/wsdisplay_usl_io.h>
5-extern char **environ;
6 #else
7 #include <linux/input.h>
8 #include <linux/kd.h>
9@@ -425,6 +424,7 @@ run(int fd) {
10 int
11 main(int argc, char *argv[])
12 {
13+ extern char **environ;
14 int option;
15 char *vt = NULL, buf[64];
16 struct sigaction action = {