summaryrefslogtreecommitdiff
path: root/if_not_there.c
diff options
context:
space:
mode:
Diffstat (limited to 'if_not_there.c')
-rw-r--r--if_not_there.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/if_not_there.c b/if_not_there.c
index a93795f..42dd803 100644
--- a/if_not_there.c
+++ b/if_not_there.c
@@ -1,7 +1,9 @@
/* Conditionally execute a command based if the file argv[1] doesn't exist */
/* Except for execvp, we stick to ANSI C. */
-# include "gcconfig.h"
+# include "private/gcconfig.h"
# include <stdio.h>
+# include <stdlib.h>
+# include <unistd.h>
int main(argc, argv, envp)
int argc;
@@ -16,6 +18,7 @@ char ** envp;
return(0);
}
printf("^^^^Starting command^^^^\n");
+ fflush(stdout);
execvp(argv[2], argv+2);
exit(1);