diff options
author | Jason Molenda <jmolenda@apple.com> | 1998-04-16 20:14:51 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1998-04-16 20:14:51 +0000 |
commit | a17aca4705baf61d56cc41076d85ce38a1da89cd (patch) | |
tree | 1a58ea85e2c28500de0d92addaa6fa594720be36 /gdb/rdi-share/etherdrv.c | |
parent | fc4e5b84c8fa9e228c17d6a545c6e50eaeb68085 (diff) | |
download | gdb-a17aca4705baf61d56cc41076d85ce38a1da89cd.zip gdb-a17aca4705baf61d56cc41076d85ce38a1da89cd.tar.gz gdb-a17aca4705baf61d56cc41076d85ce38a1da89cd.tar.bz2 |
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.
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 |