ports/net-mgmt/seafile-client/files/patch-lib_net.c
Thomas Zander 6cfe79ca6f Move net-mgmt/seafile to net-mgmt/seafile-client, update to version 6.0.1
PR:		215360
Submitted by:	Ultima1252@gmail.com (maintainer of net-mgmt/seafile)
2016-12-26 14:56:02 +00:00

14 lines
508 B
C

--- lib/net.c.orig 2015-09-21 03:42:11 UTC
+++ lib/net.c
@@ -157,7 +157,11 @@ ccnet_net_bind_tcp (int port, int nonblo
snprintf (buf, sizeof(buf), "%d", port);
+#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__)
+ if ( (n = getaddrinfo("0.0.0.0", buf, &hints, &res) ) != 0) {
+#else
if ( (n = getaddrinfo(NULL, buf, &hints, &res) ) != 0) {
+#endif
ccnet_warning ("getaddrinfo fails: %s\n", gai_strerror(n));
return -1;
}