diff options
Diffstat (limited to 'gdb/rdi-share')
-rw-r--r-- | gdb/rdi-share/etherdrv.c | 4 |
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 */ |