+Fri Jun 2 18:05:16 1995 Keith Vetter (keithv@fusion.com)
+
+ * error_message.c: better handling of Winsock errors.
+
Tue May 2 21:35:09 1995 Tom Yu (tlyu@dragons-lair)
* Makefile.in: remove spurious whitespace from blank line
int started = 0;
char *cp;
+#ifdef _WINDOWS
+/*
+** Winsock defines errors in the range 10000-10100. These are equivalent
+** to 10000 plus the Berkeley error numbers.
+*/
+ if (code >= 10000 && code <= 10100) /* Is it Winsock error? */
+ code -= 10000; /* Turn into Berkeley errno */
+#endif
+
l_offset = code & ((1<<ERRCODE_RANGE)-1);
offset = (int) l_offset;
table_num = code - l_offset;