mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-03 04:01:22 +08:00
Thu Apr 16 13:13:24 1998 Jason Molenda (crash@bugshack.cygnus.com)
* rdi-share/etherdrv.c (EthernetWrite): Use strerror to get error string if in an ANSI C-ish environment.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user