Patch by Felipe Kellermann to fix a compiler compatability problem
authorGlenn L McGrath <bug1@ihug.co.nz>
Fri, 5 Mar 2004 12:55:30 +0000 (12:55 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Fri, 5 Mar 2004 12:55:30 +0000 (12:55 -0000)
shell/lash.c

index 6969173c834fcef533806604359a5a2347457d0e..30cbe416e8ee69db687e183ba54b3da367d8f5d5 100644 (file)
@@ -1457,14 +1457,14 @@ static int busy_loop(FILE * input)
        int i;
        int inbg;
        int status;
-       newjob.job_list = &job_list;
-       newjob.job_context = DEFAULT_CONTEXT;
 #ifdef CONFIG_LASH_JOB_CONTROL
-       pid_t  parent_pgrp;
-
-       /* save current owner of TTY so we can restore it on exit */
-       parent_pgrp = tcgetpgrp(shell_terminal);
+        pid_t  parent_pgrp;
+                                                                                
+        /* save current owner of TTY so we can restore it on exit */
+        parent_pgrp = tcgetpgrp(shell_terminal);
 #endif
+       newjob.job_list = &job_list;
+       newjob.job_context = DEFAULT_CONTEXT;
 
        command = (char *) xcalloc(BUFSIZ, sizeof(char));