# HG changeset patch # User reimar # Date 1170605309 0 # Node ID 9bc7a6022cde90f8d05a5173be8456f7600f7613 # Parent 50c9dc00154de95f68a89ee0102b2104336faa8c Use defined() syntax instead without (). diff -r 50c9dc00154d -r 9bc7a6022cde stream/tcp.c --- a/stream/tcp.c Sun Feb 04 14:18:56 2007 +0000 +++ b/stream/tcp.c Sun Feb 04 16:08:29 2007 +0000 @@ -86,7 +86,7 @@ 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));