openbsd-ports/misc/memcached/patches/patch-memcached_c
sthen e182b729a8 update to 1.2.6, from arn at antora.ru on ports@.
- major crash fixes: "If you have stability issues with
any previous release, please upgrade to this one."
- minor bugfixes, updates
- ipv6 support
- "noreply" mode for many commands
- out of memory errors more clear
- added eviction/OOM tracking per slab class
2008-11-06 13:06:56 +00:00

16 lines
502 B
Plaintext

$OpenBSD: patch-memcached_c,v 1.4 2008/11/06 13:06:56 sthen Exp $
--- memcached.c.orig Wed Nov 5 14:36:30 2008
+++ memcached.c Wed Nov 5 14:39:11 2008
@@ -2474,7 +2474,11 @@ static int server_socket(const int port, const bool is
* that otherwise mess things up.
*/
memset(&hints, 0, sizeof (hints));
+#ifdef __OpenBSD__
+ hints.ai_flags = AI_PASSIVE;
+#else
hints.ai_flags = AI_PASSIVE|AI_ADDRCONFIG;
+#endif
if (is_udp)
{
hints.ai_protocol = IPPROTO_UDP;