]> git.pond.sub.org Git - empserver/blobdiff - src/lib/update/anno.c
Update copyright notice
[empserver] / src / lib / update / anno.c
index b374a7e3efc829d74b4478cf7c09dfd5f3d5bbd2..af4d4f107bf7071b5a08575e3bd6c6d6bd57c6f4 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -36,6 +36,9 @@
 
 #include <config.h>
 
+#if defined(_WIN32) && defined(__GNUC__)
+#include <io.h>
+#endif
 #include <stdio.h>
 #include <time.h>
 #include "tel.h"
@@ -96,6 +99,9 @@ delete_old_announcements(void)
        if (rename(tmp_filename, annfil) != 0)
            logerror("can't move temporary telegram file %s "
                     "to telegram file %s", tmp_filename, annfil);
+    } else {
+       if (remove(tmp_filename) < 0)
+           logerror("can't delete telegram file %s", tmp_filename);
     }
 }