changeset 22114:9bc7a6022cde

Use defined() syntax instead without ().
author reimar
date Sun, 04 Feb 2007 16:08:29 +0000
parents 50c9dc00154d
children cc925b0d1335
files stream/tcp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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));