summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2020-07-20 16:27:28 -0700
committerGitHub <noreply@github.com>2020-07-20 16:27:28 -0700
commit18fc12c392f506c7be3cb0753304db6a3525a8a9 (patch)
tree85713eba26213727db67f9fc5001e2038ca0391f
parent43aeabbbee2fb61bb0cf82d8e82631db35a6ffb8 (diff)
Move include to sockcompat.h to maintain style (#850)
See #848
-rw-r--r--sockcompat.c1
-rw-r--r--sockcompat.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/sockcompat.c b/sockcompat.c
index ca1bacc..f99d14b 100644
--- a/sockcompat.c
+++ b/sockcompat.c
@@ -32,7 +32,6 @@
#include "sockcompat.h"
#ifdef _WIN32
-#include <errno.h>
static int _wsaErrorToErrno(int err) {
switch (err) {
case WSAEWOULDBLOCK:
diff --git a/sockcompat.h b/sockcompat.h
index 9249d5e..85810e8 100644
--- a/sockcompat.h
+++ b/sockcompat.h
@@ -49,6 +49,7 @@
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stddef.h>
+#include <errno.h>
#ifdef _MSC_VER
typedef long long ssize_t;