diff --git a/evutil.c b/evutil.c index f6b7f2dd..f9cbaa7d 100644 --- a/evutil.c +++ b/evutil.c @@ -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