1 /*
2    sitecopy, manage remote web sites.
3    Copyright (C) 1998-2001, Joe Orton <joe@manyfish.co.uk>.
4 
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2 of the License, or
8    (at your option) any later version.
9 
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14 
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software
17    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19 
20 #include "config.h"
21 
22 #include <stdio.h>
23 #ifdef HAVE_STRING_H
24 #include <string.h>
25 #endif
26 #ifdef HAVE_STRINGS_H
27 #include <strings.h>
28 #endif
29 #ifdef HAVE_STDLIB_H
30 #include <stdlib.h>
31 #endif /* HAVE_STDLIB_H */
32 
33 #include "common.h"
34 #include "i18n.h"
35 
36 /* Snagged from fetchmail */
37 # if !HAVE_STRERROR && !defined(strerror)
strerror(errnum)38 char *strerror (errnum)
39      int errnum;
40 {
41   extern char *sys_errlist[];
42   extern int sys_nerr;
43 
44   if (errnum > 0 && errnum <= sys_nerr)
45     return sys_errlist[errnum];
46   return _("Unknown system error");
47 }
48 # endif /* HAVE_STRERROR */
49