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:
parent
fc4e5b84c8
commit
a17aca4705
|
@ -1,3 +1,8 @@
|
||||||
|
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.
|
||||||
|
|
||||||
Wed Apr 15 18:59:48 1998 Mark Alexander <marka@cygnus.com>
|
Wed Apr 15 18:59:48 1998 Mark Alexander <marka@cygnus.com>
|
||||||
|
|
||||||
* sparc-tdep.c (SPARC_HAS_FPU): Define.
|
* sparc-tdep.c (SPARC_HAS_FPU): Define.
|
||||||
|
|
|
@ -662,12 +662,17 @@ static int EthernetWrite(DriverCall *dc)
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
perror("sendto");
|
perror("sendto");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef COMPILING_ON_WINDOWS
|
#ifdef COMPILING_ON_WINDOWS
|
||||||
panic("ethernet send failure\n");
|
panic("ethernet send failure\n");
|
||||||
#else
|
#else
|
||||||
/* might not work for Windows */
|
/* might not work for Windows */
|
||||||
panic("ethernet send failure [%s]\n",
|
panic("ethernet send failure [%s]\n",
|
||||||
|
#ifdef STDC_HEADERS
|
||||||
|
strerror(errno));
|
||||||
|
#else
|
||||||
errno < sys_nerr ? sys_errlist[errno] : "unknown errno");
|
errno < sys_nerr ? sys_errlist[errno] : "unknown errno");
|
||||||
|
#endif /* STDC_HEADERS */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
Loading…
Reference in New Issue