aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/socket.h
diff options
context:
space:
mode:
authorakhropov <akhropov@yandex-team.ru>2022-02-10 16:46:32 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:32 +0300
commit00afc96e9c0298054b7386fa7fb9e3cc3d67b974 (patch)
treecb7a9f4a92c0d4cc5a86eeed49ad71e810953c1f /util/network/socket.h
parent83a8efcf3af051e3dd59c00d1d5dafc96412ec1e (diff)
downloadydb-00afc96e9c0298054b7386fa7fb9e3cc3d67b974.tar.gz
Restoring authorship annotation for <akhropov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/network/socket.h')
-rw-r--r--util/network/socket.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/network/socket.h b/util/network/socket.h
index 40c8648b40..4fb3926110 100644
--- a/util/network/socket.h
+++ b/util/network/socket.h
@@ -14,10 +14,10 @@
#include <cerrno>
-#ifndef INET_ADDRSTRLEN
+#ifndef INET_ADDRSTRLEN
#define INET_ADDRSTRLEN 16
-#endif
-
+#endif
+
#if defined(_unix_)
#define get_host_error() h_errno
#elif defined(_win_)
@@ -46,15 +46,15 @@ int poll(struct pollfd fds[], nfds_t nfds, int timeout) noexcept;
#else
#define poll(fds, nfds, timeout) WSAPoll(fds, nfds, timeout)
#endif
-
+
int inet_aton(const char* cp, struct in_addr* inp);
-
+
#define get_host_error() WSAGetLastError()
#define SHUT_RD SD_RECEIVE
#define SHUT_WR SD_SEND
#define SHUT_RDWR SD_BOTH
-
+
#define INFTIM (-1)
#endif