summaryrefslogtreecommitdiff
blob: c4982b02cb453cd549a714e318ba26123a25774c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;