diff options
Diffstat (limited to 'pr/src/io/prmapopt.c')
-rw-r--r-- | pr/src/io/prmapopt.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pr/src/io/prmapopt.c b/pr/src/io/prmapopt.c index f017c36a..d8570ccb 100644 --- a/pr/src/io/prmapopt.c +++ b/pr/src/io/prmapopt.c @@ -46,9 +46,14 @@ * includes winsock.h, with _WIN32_WINNT undefined. */ -#ifdef WINNT +#ifdef WIN32 +#ifdef __MINGW32__ +#include <winsock2.h> +#include <ws2tcpip.h> +#elif defined(WINNT) #include <winsock.h> #endif +#endif #include "primpl.h" @@ -57,7 +62,7 @@ #include <netinet/in_systm.h> /* n_short, n_long, n_time */ #endif -#if defined(XP_UNIX) || defined(OS2) +#if defined(XP_UNIX) || defined(OS2) || (defined(XP_BEOS) && defined(BONE_VERSION)) #include <netinet/tcp.h> /* TCP_NODELAY, TCP_MAXSEG */ #endif @@ -86,7 +91,7 @@ PRStatus PR_CALLBACK _PR_SocketGetSocketOption(PRFileDesc *fd, PRSocketOptionDat { case PR_SockOpt_Linger: { -#if !defined(XP_BEOS) +#if !defined(XP_BEOS) || defined(BONE_VERSION) struct linger linger; length = sizeof(linger); rv = _PR_MD_GETSOCKOPT( @@ -244,7 +249,7 @@ PRStatus PR_CALLBACK _PR_SocketSetSocketOption(PRFileDesc *fd, const PRSocketOpt { case PR_SockOpt_Linger: { -#if !defined(XP_BEOS) +#if !defined(XP_BEOS) || defined(BONE_VERSION) struct linger linger; linger.l_onoff = data->value.linger.polarity; linger.l_linger = PR_IntervalToSeconds(data->value.linger.linger); |