diff options
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | stream/network.h | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -2982,7 +2982,7 @@ done if test "$_socklen_t" = yes ; then _def_socklen_t='#define HAVE_SOCKLEN_T 1' else - _def_socklen_t='#undef HAVE_SOCKLEN_T' + _def_socklen_t='#define HAVE_SOCKLEN_T 0' fi echores "$_socklen_t" @@ -2997,7 +2997,7 @@ cc_check $_ld_sock && _closesocket=yes if test "$_closesocket" = yes ; then _def_closesocket='#define HAVE_CLOSESOCKET 1' else - _def_closesocket='#undef HAVE_CLOSESOCKET' + _def_closesocket='#define HAVE_CLOSESOCKET 0' fi echores "$_closesocket" diff --git a/stream/network.h b/stream/network.h index 36b470dfe4..5c41ddc70c 100644 --- a/stream/network.h +++ b/stream/network.h @@ -22,10 +22,10 @@ #include "url.h" #include "http.h" -#ifndef HAVE_CLOSESOCKET +#if !HAVE_CLOSESOCKET #define closesocket close #endif -#ifndef HAVE_SOCKLEN_T +#if !HAVE_SOCKLEN_T typedef int socklen_t; #endif |