diff --git a/stream/tcp.c b/stream/tcp.c index 425598465e..a9b868c4d0 100644 --- a/stream/tcp.c +++ b/stream/tcp.c @@ -86,7 +86,7 @@ connect2Server_with_af(char *host, int port, int af,int verb) { return TCP_ERROR_FATAL; } -#if defined SO_RCVTIMEO && defined SO_SNDTIMEO +#if defined(SO_RCVTIMEO) && defined(SO_SNDTIMEO) tv.tv_sec = 10; tv.tv_usec = 0; setsockopt(socket_server_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));