diff options
Diffstat (limited to 'src/lib/utils/http_util')
-rw-r--r-- | src/lib/utils/http_util/http_util.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/utils/http_util/http_util.cpp b/src/lib/utils/http_util/http_util.cpp index 36a689c97..4b0db03a5 100644 --- a/src/lib/utils/http_util/http_util.cpp +++ b/src/lib/utils/http_util/http_util.cpp @@ -27,6 +27,8 @@ #include <winsock2.h> #include <WS2tcpip.h> +namespace { + int close(int fd) { return ::closesocket(fd); @@ -42,6 +44,8 @@ int write(int s, const char* buf, size_t len) return ::send(s, reinterpret_cast<const char*>(buf), static_cast<int>(len), 0); } +} + typedef size_t ssize_t; #else #include <sys/types.h> |