diff options
author | James Yonan <james@openvpn.net> | 2010-05-09 00:03:42 +0000 |
---|---|---|
committer | James Yonan <james@openvpn.net> | 2010-05-09 00:03:42 +0000 |
commit | 8db6234db7dd61e9cef60baf1ace39f5575e8fbb (patch) | |
tree | 463a78cf4348e0c43c73696e056a54bc6b02daf5 /socket.c | |
parent | Updated copyright date to 2010. (diff) | |
download | openvpn-8db6234db7dd61e9cef60baf1ace39f5575e8fbb.tar.xz |
Fixed issue on Windows with MSVC compiler, where TCP_NODELAY support
was not being compiled in.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5620 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r-- | socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -486,7 +486,7 @@ socket_set_buffers (int fd, const struct socket_buffer_size *sbs) static bool socket_set_tcp_nodelay (int sd, int state) { -#if defined(HAVE_SETSOCKOPT) && defined(IPPROTO_TCP) && defined(TCP_NODELAY) +#if defined(WIN32) || (defined(HAVE_SETSOCKOPT) && defined(IPPROTO_TCP) && defined(TCP_NODELAY)) if (setsockopt (sd, IPPROTO_TCP, TCP_NODELAY, (void *) &state, sizeof (state)) != 0) { msg (M_WARN, "NOTE: setsockopt TCP_NODELAY=%d failed", state); |