Browse code

- compile without ipv6 fix (from Maxim Sobolev)

Andrei Pelinescu-Onciul authored on 06/07/2003 19:26:58
Showing 1 changed files
... ...
@@ -121,6 +121,7 @@ struct socket_info* get_out_socket(union sockaddr_union* to, int proto)
121 121
 								sock_info[r].address.len)==0)
122 122
 							goto error; /* it is actually success */
123 123
 						break;
124
+#if defined(USE_IPV6)
124 125
 			case AF_INET6:	
125 126
 						if (sock_info[r].address.af!=AF_INET6)
126 127
 								continue;
... ...
@@ -128,6 +129,7 @@ struct socket_info* get_out_socket(union sockaddr_union* to, int proto)
128 129
 								&from.sin6.sin6_addr, len)==0)
129 130
 							goto error;
130 131
 						continue;
132
+#endif
131 133
 			default:	LOG(L_ERR, "ERROR: get_out_socket: "
132 134
 									"unknown family: %d\n",
133 135
 									from.s.sa_family);