dovecot/dovecot-2.2.18-fixbuild.patch
2015-06-19 13:31:53 +02:00

12 lines
505 B
Diff

--- dovecot-2.2.18/src/lib/test-net.c 2015-05-03 05:12:11.000000000 -0400
+++ dovecot-2.2.18/src/lib/test-net.c 2015-06-17 03:18:02.571420401 -0400
@@ -56,7 +56,7 @@ static void test_net_ip2addr(void)
test_begin("net_ip2addr()");
test_assert(net_addr2ip("127.0.0.1", &ip) == 0 &&
ip.family == AF_INET &&
- ip.u.ip4.s_addr == (127 | (1 << 24)));
+ ntohl(ip.u.ip4.s_addr) == (0x7f000001));
#ifdef HAVE_IPV6
test_assert(net_addr2ip("::5", &ip) == 0 &&
ip.family == AF_INET6 &&