diff options
author | René Korthaus <[email protected]> | 2017-08-04 18:53:12 +0200 |
---|---|---|
committer | René Korthaus <[email protected]> | 2017-08-04 18:53:12 +0200 |
commit | 07918423d8e4b1a24cbdd5e89d919a1f1944a225 (patch) | |
tree | 926e411cbbd882f5878fd1be6aa012b99547801d /src/lib/utils/http_util | |
parent | b717ec3d228719eb0401b2e61d717edca704c899 (diff) |
Use anonymous namespace to fix static build
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> |