aboutsummaryrefslogtreecommitdiffstats
path: root/gc/if_not_there
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xgc/if_not_therebin0 -> 14617 bytes
-rw-r--r--gc/if_not_there.c5
2 files changed, 4 insertions, 1 deletions
diff --git a/gc/if_not_there b/gc/if_not_there
new file mode 100755
index 0000000..e424da1
--- /dev/null
+++ b/gc/if_not_there
Binary files differ
diff --git a/gc/if_not_there.c b/gc/if_not_there.c
index a93795f..42dd803 100644
--- a/gc/if_not_there.c
+++ b/gc/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);