From bcf9d1dbcee8539444e0b8897c643655381d9dac Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 28 Feb 1996 05:18:50 +0000 Subject: [PATCH] Windows has strerror() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7565 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/et/ChangeLog | 4 ++++ src/util/et/error_message.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index c8051e539..0323440c9 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -1,3 +1,7 @@ +Sat Feb 24 18:50:03 1996 Theodore Y. Ts'o + + * error_message.c (HAS_STRERROR): Windows has strerror() + Wed Feb 7 00:19:17 1996 Theodore Y. Ts'o * Makefile.in (CCFILES): Checked in danw's changes to support diff --git a/src/util/et/error_message.c b/src/util/et/error_message.c index 4a7821c46..906b935c5 100644 --- a/src/util/et/error_message.c +++ b/src/util/et/error_message.c @@ -39,9 +39,12 @@ long code; char *cp; #ifdef _WINDOWS +#define HAS_STRERROR 1 /* ** Winsock defines errors in the range 10000-10100. These are equivalent ** to 10000 plus the Berkeley error numbers. +* +* (Does windows strerror() work right here?) */ if (code >= 10000 && code <= 10100) /* Is it Winsock error? */ code -= 10000; /* Turn into Berkeley errno */ -- 2.26.2