summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-irc/epic5/files/0.0.3-ipv6-fix.patch')
-rw-r--r--net-irc/epic5/files/0.0.3-ipv6-fix.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/net-irc/epic5/files/0.0.3-ipv6-fix.patch b/net-irc/epic5/files/0.0.3-ipv6-fix.patch
new file mode 100644
index 000000000000..c4982b02cb45
--- /dev/null
+++ b/net-irc/epic5/files/0.0.3-ipv6-fix.patch
@@ -0,0 +1,27 @@
+--- source/network.c.orig 2005-02-17 04:27:01.233873169 +0100
++++ source/network.c 2005-02-17 04:27:44.729764797 +0100
+@@ -287,8 +287,11 @@
+ * return *len == 0 for port != -1, then /dcc breaks.
+ */
+ if ((family == AF_UNIX) ||
+- (family == AF_INET && port == -1 && LocalIPv4HostName == NULL) ||
+- (family == AF_INET6 && port == -1 && LocalIPv6HostName == NULL))
++ (family == AF_INET && port == -1 && LocalIPv4HostName == NULL)
++#ifdef INET6
++ || (family == AF_INET6 && port == -1 && LocalIPv6HostName == NULL)
++#endif
++ )
+ {
+ *len = 0;
+ return 0; /* No vhost needed */
+@@ -296,8 +299,10 @@
+
+ if (family == AF_INET)
+ lhn = LocalIPv4HostName;
++#ifdef INET6
+ else if (family == AF_INET6)
+ lhn = LocalIPv6HostName;
++#endif
+ else
+ lhn = NULL;
+