summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-07-21 14:41:08 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-07-21 14:41:08 +0000
commit8182ab93829023bf9ec5c69143e03269b52797b3 (patch)
tree224effd642a7692d3955d71accde688fd655b7f3
parentaf3890c209ba6252eb2335d05be6363ac0c3c687 (diff)
even though gcc doesn't reuse the utsname space, it could. Ensure MACHINE
stays defined.
-rw-r--r--usr.bin/make/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index a5cf3b0fcbd..ff52417a3cc 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: main.c,v 1.70 2007/07/08 17:44:20 espie Exp $ */
+/* $OpenBSD: main.c,v 1.71 2007/07/21 14:41:07 espie Exp $ */
/* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */
/*
@@ -490,7 +490,7 @@ main(int argc, char **argv)
*/
if (!machine) {
#ifndef MAKE_BOOTSTRAP
- struct utsname utsname;
+ static struct utsname utsname;
if (uname(&utsname) == -1) {
perror("make: uname");