From: Jason Molenda Date: Tue, 3 Mar 1998 01:00:59 +0000 (+0000) Subject: Mon Mar 2 16:59:15 1998 Jason Molenda (crash@bugshack.cygnus.com) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=290d79e0a6472e34dcbb40c650da63befabd22b0;p=binutils-gdb.git Mon Mar 2 16:59:15 1998 Jason Molenda (crash@bugshack.cygnus.com) * rdi-share/etherdrv.c (sys_errlist): Add correct decl for Linux. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 49667a8ae17..3c391e5f3d7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Mon Mar 2 16:59:15 1998 Jason Molenda (crash@bugshack.cygnus.com) + + * rdi-share/etherdrv.c (sys_errlist): Add correct decl for Linux. + Mon Mar 2 16:51:44 1998 Jason Molenda (crash@bugshack.cygnus.com) * Makefile.in (YYFILES): Remove in maintainer-clean, not distclean. diff --git a/gdb/rdi-share/etherdrv.c b/gdb/rdi-share/etherdrv.c index 976b2f5891e..3c7f25487bf 100644 --- a/gdb/rdi-share/etherdrv.c +++ b/gdb/rdi-share/etherdrv.c @@ -82,8 +82,12 @@ #ifndef COMPILING_ON_WINDOWS /* these two might not work for windows */ extern int sys_nerr; +#ifdef __linux__ + extern const char *const sys_errlist[]; +#else extern char *sys_errlist[]; #endif +#endif #ifndef UNUSED # define UNUSED(x) (x = x) /* Silence compiler warnings */