diff options
Diffstat (limited to 'gdb/rdi-share/etherdrv.c')
-rw-r--r-- | gdb/rdi-share/etherdrv.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/rdi-share/etherdrv.c b/gdb/rdi-share/etherdrv.c index 46eeaf4..58462d4 100644 --- a/gdb/rdi-share/etherdrv.c +++ b/gdb/rdi-share/etherdrv.c @@ -662,12 +662,17 @@ static int EthernetWrite(DriverCall *dc) #ifdef DEBUG perror("sendto"); #endif + #ifdef COMPILING_ON_WINDOWS panic("ethernet send failure\n"); #else /* might not work for Windows */ panic("ethernet send failure [%s]\n", +#ifdef STDC_HEADERS + strerror(errno)); +#else errno < sys_nerr ? sys_errlist[errno] : "unknown errno"); +#endif /* STDC_HEADERS */ #endif } #ifdef DEBUG |