diff options
author | Ed Schouten <ed@nuxi.nl> | 2015-08-25 15:29:37 +0200 |
---|---|---|
committer | Azat Khuzhin <a3at.mail@gmail.com> | 2015-09-02 19:01:48 +0300 |
commit | ce1776c96d2520d0a51e9d0bcc4bf345592c76ad (patch) | |
tree | 535201cd02b54a636ae82588176e0d69cbc9d751 /evutil.c | |
parent | 25e56fdbc1a13dd138acd746235b75a4d6dedc34 (diff) | |
download | libevent-ce1776c96d2520d0a51e9d0bcc4bf345592c76ad.tar.gz |
Test against SO_REUSEADDR (along with _WIN32).
This makes the code build on other systems that also don't have
SO_REUSEADDR without requiring special code.
[ azat: partially revert WIN32 check since SO_REUSEADDR on win32 differs from
unix semantics. ]
Closes #275
Diffstat (limited to 'evutil.c')
-rw-r--r-- | evutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -358,7 +358,7 @@ evutil_fast_socket_nonblocking(evutil_socket_t fd) int evutil_make_listen_socket_reuseable(evutil_socket_t sock) { -#ifndef _WIN32 +#if defined(SO_REUSEADDR) && !defined(_WIN32) int one = 1; /* REUSEADDR on Unix means, "don't hang on to this address after the * listener is closed." On Windows, though, it means "don't keep other |