forked from github/server
another HAVE_X define that was never defined, and pointless
This commit is contained in:
parent
761f40f782
commit
2d3451d7b8
|
@ -1569,14 +1569,12 @@ int writegame(const char *filename)
|
||||||
|
|
||||||
create_directories();
|
create_directories();
|
||||||
join_path(datapath(), filename, path, sizeof(path));
|
join_path(datapath(), filename, path, sizeof(path));
|
||||||
#ifdef HAVE_UNISTD_H
|
|
||||||
/* make sure we don't overwrite an existing file (hard links) */
|
/* make sure we don't overwrite an existing file (hard links) */
|
||||||
if (remove(path)!=0) {
|
if (remove(path) != 0) {
|
||||||
if (errno==ENOENT) {
|
if (errno == ENOENT) {
|
||||||
errno = 0;
|
errno = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
F = fopen(path, "wb");
|
F = fopen(path, "wb");
|
||||||
if (!F) {
|
if (!F) {
|
||||||
perror(path);
|
perror(path);
|
||||||
|
|
Loading…
Reference in New Issue