#43: Basic windows support operational

This commit is contained in:
Erik Ekman
2009-01-25 20:39:44 +00:00
committed by Erik Ekman
parent 10fd388bb7
commit b3e8cf0554
3 changed files with 35 additions and 13 deletions

View File

@@ -230,7 +230,11 @@ warn(const char *fmt, ...)
va_start(list, fmt);
if (fmt) fprintf(stderr, fmt, list);
fprintf(stderr, "%s\n", strerror(errno));
if (errno == 0) {
fprintf(stderr, ": WSA error %d\n", WSAGetLastError());
} else {
fprintf(stderr, ": %s\n", strerror(errno));
}
va_end(list);
}