openbsd-ports/www/http_load/patches/patch-http_load_c
sturm f93bda89fc fix ipv6 support
from Matthias Bauer <bauerm at pestilenz.org>
2007-12-04 19:15:10 +00:00

16 lines
413 B
Plaintext

$OpenBSD: patch-http_load_c,v 1.5 2007/12/04 19:15:10 sturm Exp $
--- http_load.c.orig Sun Mar 12 20:17:03 2006
+++ http_load.c Mon Dec 3 22:13:42 2007
@@ -105,7 +105,11 @@ static int num_sips, max_sips;
typedef struct {
int url_num;
+#ifdef USE_IPV6
+ struct sockaddr_in6 sa;
+#else /* USE_IPV6 */
struct sockaddr_in sa;
+#endif /* USE_IPV6 */
int sa_len;
int conn_fd;
#ifdef USE_SSL