Switch from hstrerror to herror for libc5 systems.
This commit is contained in:
parent
7cedac567c
commit
231f998aba
@ -35,11 +35,10 @@ extern int h_errno;
|
|||||||
|
|
||||||
extern void vherror_msg(const char *s, va_list p)
|
extern void vherror_msg(const char *s, va_list p)
|
||||||
{
|
{
|
||||||
int err = h_errno;
|
|
||||||
if(s == 0)
|
if(s == 0)
|
||||||
s = "";
|
s = "";
|
||||||
verror_msg(s, p);
|
verror_msg(s, p);
|
||||||
if (*s)
|
if (*s)
|
||||||
s = ": ";
|
fputs(": ", stderr);
|
||||||
fprintf(stderr, "%s%s\n", s, hstrerror(err));
|
herror("");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user