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();
|
||||
join_path(datapath(), filename, path, sizeof(path));
|
||||
#ifdef HAVE_UNISTD_H
|
||||
/* make sure we don't overwrite an existing file (hard links) */
|
||||
if (remove(path)!=0) {
|
||||
if (errno==ENOENT) {
|
||||
if (remove(path) != 0) {
|
||||
if (errno == ENOENT) {
|
||||
errno = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
F = fopen(path, "wb");
|
||||
if (!F) {
|
||||
perror(path);
|
||||
|
|
Loading…
Reference in New Issue