43 |
|
|
44 |
#include "complain.h" |
#include "complain.h" |
45 |
|
|
|
#ifndef HAVE_DECL_STRERROR_R |
|
|
"this configure-time declaration test was not run" |
|
|
#endif |
|
|
#if !HAVE_DECL_STRERROR_R |
|
|
char *strerror_r (); |
|
|
#endif |
|
|
|
|
46 |
#ifndef _ |
#ifndef _ |
47 |
# define _(String) String |
# define _(String) String |
48 |
#endif |
#endif |
69 |
name of the executing program. */ |
name of the executing program. */ |
70 |
extern char *program_name; |
extern char *program_name; |
71 |
|
|
72 |
# ifdef HAVE_STRERROR_R |
# if HAVE_STRERROR |
73 |
# define __strerror_r strerror_r |
# ifndef HAVE_DECL_STRERROR |
74 |
|
"this configure-time declaration test was not run" |
75 |
|
# endif |
76 |
|
# if !HAVE_DECL_STRERROR && !defined strerror |
77 |
|
char *strerror PARAMS ((int)); |
78 |
|
# endif |
79 |
# else |
# else |
|
# if HAVE_STRERROR |
|
|
# ifndef strerror /* On some systems, strerror is a macro */ |
|
|
char *strerror (); |
|
|
# endif |
|
|
# else |
|
80 |
static char * |
static char * |
81 |
private_strerror (errnum) |
private_strerror (errnum) |
82 |
int errnum; |
int errnum; |
88 |
return _(sys_errlist[errnum]); |
return _(sys_errlist[errnum]); |
89 |
return _("Unknown system error"); |
return _("Unknown system error"); |
90 |
} |
} |
91 |
# define strerror private_strerror |
# define strerror private_strerror |
92 |
# endif /* HAVE_STRERROR */ |
# endif /* HAVE_STRERROR */ |
|
# endif /* HAVE_STRERROR_R */ |
|
93 |
#endif /* not _LIBC */ |
#endif /* not _LIBC */ |
94 |
|
|
95 |
/* This variable is incremented each time `warn' is called. */ |
/* This variable is incremented each time `warn' is called. */ |