]> code.delx.au - gnu-emacs/blobdiff - lib-src/update-game-score.c
Merge from emacs-24; up to 2012-12-11T18:52:31Z!monnier@iro.umontreal.ca
[gnu-emacs] / lib-src / update-game-score.c
index 94de662e58902e3b5ece7e3b0ac6a9a7c5d785c5..29c81a8936c2803c7c7465225c4b125b82886aeb 100644 (file)
@@ -1,6 +1,6 @@
 /* update-game-score.c --- Update a score file
 
-Copyright (C) 2002-201 Free Software Foundation, Inc.
+Copyright (C) 2002-2013 Free Software Foundation, Inc.
 
 Author: Colin Walters <walters@debian.org>
 
@@ -42,9 +42,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <time.h>
 #include <pwd.h>
 #include <ctype.h>
-#ifdef HAVE_FCNTL_H
 #include <fcntl.h>
-#endif
 #include <sys/stat.h>
 #include <getopt.h>
 
@@ -94,22 +92,6 @@ lose (const char *msg)
   exit (EXIT_FAILURE);
 }
 
-/* Taken from sysdep.c.  */
-#ifndef HAVE_STRERROR
-#ifndef WINDOWSNT
-char *
-strerror (int errnum)
-{
-  extern char *sys_errlist[];
-  extern int sys_nerr;
-
-  if (errnum >= 0 && errnum < sys_nerr)
-    return sys_errlist[errnum];
-  return (char *) "Unknown error";
-}
-#endif /* not WINDOWSNT */
-#endif /* ! HAVE_STRERROR */
-
 static _Noreturn void
 lose_syserr (const char *msg)
 {