[Dovecot] Solaris build failed

Andrey Panin pazke at donpac.ru
Wed Sep 14 15:13:38 EEST 2005


On 256, 09 13, 2005 at 01:16:37 -0400, GARY GENDEL wrote:
> dovecot-v1.0-alpha build failed for Solaris 11 (OpenSolaris Nevada).
> 
> The problematic line is in socket.c line 228.  The fix should be to
> change SOL_TCP to IPPROTO_TCP found in netinet/in.h.  This change should
> work universally on all platforms.

Yes, this makes sense. One-line patch attached.
Timo, please consider applying.

-- 
Andrey Panin		| Linux and UNIX system administrator
pazke at donpac.ru		| PGP key: wwwkeys.pgp.net
-------------- next part --------------
diff -urdpNX /usr/share/dontdiff dovecot-1.0.alpha2.vanilla/src/lib/network.c dovecot-1.0.alpha2/src/lib/network.c
--- dovecot-1.0.alpha2.vanilla/src/lib/network.c	2005-09-14 09:30:00.000000000 +0400
+++ dovecot-1.0.alpha2/src/lib/network.c	2005-09-14 09:30:38.000000000 +0400
@@ -225,7 +225,7 @@ void net_set_nonblock(int fd __attr_unus
 int net_set_cork(int fd __attr_unused__, int cork __attr_unused__)
 {
 #ifdef TCP_CORK
-	return setsockopt(fd, SOL_TCP, TCP_CORK, &cork, sizeof(cork));
+	return setsockopt(fd, IPPROTO_TCP, TCP_CORK, &cork, sizeof(cork));
 #else
 	errno = ENOPROTOOPT;
 	return -1;


More information about the dovecot mailing list