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:
Jason Molenda 1998-04-16 20:14:51 +00:00
parent fc4e5b84c8
commit a17aca4705
2 changed files with 10 additions and 0 deletions

View File

@ -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.

View File

@ -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