aboutsummaryrefslogtreecommitdiff
path: root/gdb/rdi-share
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-03-03 01:00:59 +0000
committerJason Molenda <jmolenda@apple.com>1998-03-03 01:00:59 +0000
commit290d79e0a6472e34dcbb40c650da63befabd22b0 (patch)
tree2ca9a82506c548fc31b617a931f5a7c4834cb5ef /gdb/rdi-share
parent37ac9ecccd756a00147fc9152c34905f7d5d47b2 (diff)
downloadgdb-290d79e0a6472e34dcbb40c650da63befabd22b0.zip
gdb-290d79e0a6472e34dcbb40c650da63befabd22b0.tar.gz
gdb-290d79e0a6472e34dcbb40c650da63befabd22b0.tar.bz2
Mon Mar 2 16:59:15 1998 Jason Molenda (crash@bugshack.cygnus.com)
* rdi-share/etherdrv.c (sys_errlist): Add correct decl for Linux.
Diffstat (limited to 'gdb/rdi-share')
-rw-r--r--gdb/rdi-share/etherdrv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/rdi-share/etherdrv.c b/gdb/rdi-share/etherdrv.c
index 976b2f5..3c7f254 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 */