mirror of
https://github.com/curl/curl.git
synced 2025-03-01 15:15:34 +08:00
Minix doesn't support getsockopt on UDP sockets or send/recv on TCP
sockets.
This commit is contained in:
parent
73e91ce20c
commit
8147c3659d
@ -440,6 +440,13 @@ static bool verifyconnect(curl_socket_t sockfd, int *error)
|
|||||||
SET_SOCKERRNO(0);
|
SET_SOCKERRNO(0);
|
||||||
err = 0;
|
err = 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#ifdef __minix
|
||||||
|
/* Minix 3.1.x doesn't support getsockopt on UDP sockets */
|
||||||
|
if (EBADIOCTL == err) {
|
||||||
|
SET_SOCKERRNO(0);
|
||||||
|
err = 0;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
if ((0 == err) || (EISCONN == err))
|
if ((0 == err) || (EISCONN == err))
|
||||||
/* we are connected, awesome! */
|
/* we are connected, awesome! */
|
||||||
|
@ -98,6 +98,13 @@ struct timeval {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__minix)
|
||||||
|
/* Minix doesn't support recv on TCP sockets */
|
||||||
|
#define sread(x,y,z) (ssize_t)read((RECV_TYPE_ARG1)(x), \
|
||||||
|
(RECV_TYPE_ARG2)(y), \
|
||||||
|
(RECV_TYPE_ARG3)(z))
|
||||||
|
|
||||||
|
#elif defined(HAVE_RECV)
|
||||||
/*
|
/*
|
||||||
* The definitions for the return type and arguments types
|
* The definitions for the return type and arguments types
|
||||||
* of functions recv() and send() belong and come from the
|
* of functions recv() and send() belong and come from the
|
||||||
@ -120,7 +127,6 @@ struct timeval {
|
|||||||
* SEND_TYPE_RETV must also be defined.
|
* SEND_TYPE_RETV must also be defined.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_RECV
|
|
||||||
#if !defined(RECV_TYPE_ARG1) || \
|
#if !defined(RECV_TYPE_ARG1) || \
|
||||||
!defined(RECV_TYPE_ARG2) || \
|
!defined(RECV_TYPE_ARG2) || \
|
||||||
!defined(RECV_TYPE_ARG3) || \
|
!defined(RECV_TYPE_ARG3) || \
|
||||||
@ -143,7 +149,14 @@ struct timeval {
|
|||||||
#endif
|
#endif
|
||||||
#endif /* HAVE_RECV */
|
#endif /* HAVE_RECV */
|
||||||
|
|
||||||
#ifdef HAVE_SEND
|
|
||||||
|
#if defined(__minix)
|
||||||
|
/* Minix doesn't support send on TCP sockets */
|
||||||
|
#define swrite(x,y,z) (ssize_t)write((SEND_TYPE_ARG1)(x), \
|
||||||
|
(SEND_TYPE_ARG2)(y), \
|
||||||
|
(SEND_TYPE_ARG3)(z))
|
||||||
|
|
||||||
|
#elif defined(HAVE_SEND)
|
||||||
#if !defined(SEND_TYPE_ARG1) || \
|
#if !defined(SEND_TYPE_ARG1) || \
|
||||||
!defined(SEND_QUAL_ARG2) || \
|
!defined(SEND_QUAL_ARG2) || \
|
||||||
!defined(SEND_TYPE_ARG2) || \
|
!defined(SEND_TYPE_ARG2) || \
|
||||||
|
Loading…
Reference in New Issue
Block a user