aboutsummaryrefslogtreecommitdiff
path: root/gdb/rdi-share
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-04-16 20:14:51 +0000
committerJason Molenda <jmolenda@apple.com>1998-04-16 20:14:51 +0000
commita17aca4705baf61d56cc41076d85ce38a1da89cd (patch)
tree1a58ea85e2c28500de0d92addaa6fa594720be36 /gdb/rdi-share
parentfc4e5b84c8fa9e228c17d6a545c6e50eaeb68085 (diff)
downloadgdb-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')
-rw-r--r--gdb/rdi-share/etherdrv.c5
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