Commit 891b43ea authored by Kevin Locke's avatar Kevin Locke Committed by David Gibson

configurator: Replace unlink with remove

Although Windows provides unlink, using it adds complication due to the
lack of unistd.h which must be included to define the function on POSIX
systems.  Instead, use remove, which C89 requires to be in stdio.h.
Signed-off-by: default avatarKevin Locke <kevin@kevinlocke.name>
Reviewed-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 82cdf817
...@@ -639,8 +639,8 @@ int main(int argc, const char *argv[]) ...@@ -639,8 +639,8 @@ int main(int argc, const char *argv[])
run_test(cmd, &tests[i]); run_test(cmd, &tests[i]);
free(cmd); free(cmd);
unlink(OUTPUT_FILE); remove(OUTPUT_FILE);
unlink(INPUT_FILE); remove(INPUT_FILE);
printf("/* Generated by CCAN configurator */\n" printf("/* Generated by CCAN configurator */\n"
"#ifndef CCAN_CONFIG_H\n" "#ifndef CCAN_CONFIG_H\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment