Fix FTBFS due to redefinition of sys_errlist
Origin: 99f30870ca
Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1038009
Bug-MacPorts: https://trac.macports.org/ticket/61356
This commit is contained in:
committed by
Tatsuya Kinoshita
parent
ef4eab99b2
commit
f1fd7215d2
18
etc.c
18
etc.c
@@ -634,24 +634,6 @@ strerror(int errno)
|
||||
}
|
||||
#endif /* not HAVE_STRERROR */
|
||||
|
||||
#ifndef HAVE_SYS_ERRLIST
|
||||
char **sys_errlist;
|
||||
|
||||
prepare_sys_errlist()
|
||||
{
|
||||
int i, n;
|
||||
|
||||
i = 1;
|
||||
while (strerror(i) != NULL)
|
||||
i++;
|
||||
n = i;
|
||||
sys_errlist = New_N(char *, n);
|
||||
sys_errlist[0] = "";
|
||||
for (i = 1; i < n; i++)
|
||||
sys_errlist[i] = strerror(i);
|
||||
}
|
||||
#endif /* not HAVE_SYS_ERRLIST */
|
||||
|
||||
int
|
||||
next_status(char c, int *status)
|
||||
{
|
||||
|
Reference in New Issue
Block a user