mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-12-04 10:04:36 +00:00
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)
|
||||
{
|
||||
int err = h_errno;
|
||||
if(s == 0)
|
||||
s = "";
|
||||
verror_msg(s, p);
|
||||
if (*s)
|
||||
s = ": ";
|
||||
fprintf(stderr, "%s%s\n", s, hstrerror(err));
|
||||
fputs(": ", stderr);
|
||||
herror("");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user