summaryrefslogtreecommitdiff
path: root/www/dillo/patches
diff options
context:
space:
mode:
authorjmmv <jmmv>2003-04-11 20:26:30 +0000
committerjmmv <jmmv>2003-04-11 20:26:30 +0000
commitd75c27e5f08537629e4b9b52e3c57ff2b2d2b937 (patch)
treec87c978a4b11f4f647edc0793e2e33d7b46a64ec /www/dillo/patches
parent65520ff3202502e5383aad0bfdf2d43c5d351453 (diff)
downloadpkgsrc-d75c27e5f08537629e4b9b52e3c57ff2b2d2b937.tar.gz
Fix build if USE_INET6 is set to NO. Do not use gmake.
Closes PR pkg/20920 by Martin Weber.
Diffstat (limited to 'www/dillo/patches')
-rw-r--r--www/dillo/patches/patch-aa13
1 files changed, 7 insertions, 6 deletions
diff --git a/www/dillo/patches/patch-aa b/www/dillo/patches/patch-aa
index a9f0c719ad1..91f182fd03f 100644
--- a/www/dillo/patches/patch-aa
+++ b/www/dillo/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.2 2003/03/21 18:15:29 jmmv Exp $
+$NetBSD: patch-aa,v 1.3 2003/04/11 20:26:31 jmmv Exp $
--- src/IO/http.c.orig 2003-03-04 20:34:59.000000000 +0100
+++ src/IO/http.c
@@ -17,19 +17,19 @@ $NetBSD: patch-aa,v 1.2 2003/03/21 18:15:29 jmmv Exp $
SocketData_t *S;
DilloHost *dh;
-@@ -269,30 +270,35 @@ static int Http_connect_socket(ChainLink
+@@ -268,31 +269,35 @@ static int Http_connect_socket(ChainLink
+ fcntl(S->SockFD, F_SETFD,
FD_CLOEXEC | fcntl(S->SockFD, F_GETFD));
- /* Some OSes require this... */
+- /* Some OSes require this... */
- memset(&name, 0, sizeof(name));
-+ memset(&name4, 0, sizeof(name4));
-+ memset(&name6, 0, sizeof(name6));
/* Set remaining parms. */
switch (dh->af) {
case AF_INET:
{
- struct sockaddr_in *sin = (struct sockaddr_in *)&name;
+ struct sockaddr_in *sin = (struct sockaddr_in *)&name4;
++ memset(&name4, 0, sizeof(name4));
sin->sin_family = dh->af;
sin->sin_port = S->port ? htons(S->port) : htons(DILLO_URL_HTTP_PORT);
memcpy(&sin->sin_addr, dh->data, dh->alen);
@@ -45,6 +45,7 @@ $NetBSD: patch-aa,v 1.2 2003/03/21 18:15:29 jmmv Exp $
char buf[128];
- struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&name;
+ struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&name6;
++ memset(&name6, 0, sizeof(name6));
sin6->sin6_family = dh->af;
sin6->sin6_port = S->port ? htons(S->port) : htons(DILLO_URL_HTTP_PORT);
memcpy(&sin6->sin6_addr, dh->data, dh->alen);
@@ -56,7 +57,7 @@ $NetBSD: patch-aa,v 1.2 2003/03/21 18:15:29 jmmv Exp $
break;
}
#endif
-@@ -302,7 +308,7 @@ static int Http_connect_socket(ChainLink
+@@ -302,7 +307,7 @@ static int Http_connect_socket(ChainLink
S->GioCh = g_io_channel_unix_new(S->SockFD);
g_io_add_watch(S->GioCh, G_IO_ERR | G_IO_HUP | G_IO_OUT,
Http_use_socket, Info->LocalKey);