mirror of
https://github.com/yarrick/iodine.git
synced 2025-10-17 16:51:54 +00:00
#43: Basic windows support operational
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user