diff options
Diffstat (limited to 'boehm-gc/if_not_there.c')
-rw-r--r-- | boehm-gc/if_not_there.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/boehm-gc/if_not_there.c b/boehm-gc/if_not_there.c index a93795f1c78..42dd8034ac7 100644 --- a/boehm-gc/if_not_there.c +++ b/boehm-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); |