summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-07-15 02:15:53 +0000
committerRoland McGrath <roland@redhat.com>1992-07-15 02:15:53 +0000
commit0f045633a73a9fa60cd55082c8986b5a5d78ee61 (patch)
treeb9b87551c1367c2293616dfab9ec90bff40ed986 /main.c
parent62e8630bdcb7940499a862e1387ee6353153bc90 (diff)
downloadgunmake-0f045633a73a9fa60cd55082c8986b5a5d78ee61.tar.gz
Formerly main.c.~52~
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.c b/main.c
index 69aeb05..6369653 100644
--- a/main.c
+++ b/main.c
@@ -718,6 +718,7 @@ main (argc, argv, envp)
f->last_mtime = (time_t) 1;
f->updated = 1;
f->update_status = 0;
+ f->command_state = cs_finished;
}
if (new_files != 0)
@@ -922,7 +923,12 @@ main (argc, argv, envp)
for (p = environ; *p != 0; ++p)
if (!strncmp (*p, "MAKELEVEL=", 10))
{
- *p = (char *) alloca (40);
+ /* The SGI compiler apparently can't understand
+ the concept of storing the result of a function
+ in something other than a local variable. */
+ char *sgi_loses;
+ sgi_loses = (char *) alloca (40);
+ *p = sgi_loses;
sprintf (*p, "MAKELEVEL=%u", makelevel);
break;
}