diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2006-08-08 18:47:14 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2006-08-08 18:47:14 +0000 |
commit | 997a98794318b5fb64989b5ca6af9586bd271046 (patch) | |
tree | fd73922348d11f13021f57c6532b38f6384df90e | |
parent | 6201dc083afce316990a9cf5c89834fbb9df052e (diff) |
Minix 3 doesn't have MSG_PEEK
-rw-r--r-- | lib/getinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c index f884ad1e5..3179ad4aa 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -209,12 +209,15 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...) if (!Curl_ssl_check_cxn(data->state.connects[data->state.lastconnect])) *param_longp = -1; /* FIN received */ } +/* Minix 3.1 doesn't support any flags on recv; just assume socket is OK */ +#ifdef MSG_PEEK else { /* use the socket */ if(recv((int)data->state.connects[data->state.lastconnect]-> sock[FIRSTSOCKET], (void*)&buf, 1, MSG_PEEK) == 0) *param_longp = -1; /* FIN received */ } +#endif } else *param_longp = -1; |