diff options
author | pav <pav@FreeBSD.org> | 2005-07-16 05:51:10 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-07-16 05:51:10 +0800 |
commit | cc07346a1f087713e75b430932e56e4945f922d6 (patch) | |
tree | 260249916ab012aec53960e1b2d5c045a3baf3ec /www | |
parent | 65d23fdf4f91ebb11135816f7bc9eed4f24f9af8 (diff) | |
download | freebsd-ports-graphics-cc07346a1f087713e75b430932e56e4945f922d6.tar.gz freebsd-ports-graphics-cc07346a1f087713e75b430932e56e4945f922d6.tar.zst freebsd-ports-graphics-cc07346a1f087713e75b430932e56e4945f922d6.zip |
- Add a patch that fixes -proxy argument
PR: ports/83427
Submitted by: Antony Mawer <gnats@mawer.org>
Diffstat (limited to 'www')
-rw-r--r-- | www/http_load/Makefile | 2 | ||||
-rw-r--r-- | www/http_load/files/patch-aa | 38 |
2 files changed, 37 insertions, 3 deletions
diff --git a/www/http_load/Makefile b/www/http_load/Makefile index 917450a1edc..79a568ea81c 100644 --- a/www/http_load/Makefile +++ b/www/http_load/Makefile @@ -7,7 +7,7 @@ PORTNAME= http_load PORTVERSION= 20020104 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= http://www.acme.com/software/http_load/ DISTNAME= ${PORTNAME}-04jan2002 diff --git a/www/http_load/files/patch-aa b/www/http_load/files/patch-aa index c4f1622eb8c..5342a50b59a 100644 --- a/www/http_load/files/patch-aa +++ b/www/http_load/files/patch-aa @@ -1,5 +1,39 @@ ---- http_load.c.old Tue Dec 9 02:22:07 2003 -+++ http_load.c Tue Dec 9 03:43:39 2003 +--- http_load.c.bak Fri Jul 15 23:49:26 2005 ++++ http_load.c Fri Jul 15 23:49:33 2005 +@@ -655,11 +655,11 @@ + (void) memset( &hints, 0, sizeof(hints) ); + hints.ai_family = PF_UNSPEC; + hints.ai_socktype = SOCK_STREAM; +- (void) snprintf( portstr, sizeof(portstr), "%d", (int) urls[url_num].port ); +- if ( (gaierr = getaddrinfo( urls[url_num].hostname, portstr, &hints, &ai )) != 0 ) ++ (void) snprintf( portstr, sizeof(portstr), "%d", (int) port ); ++ if ( (gaierr = getaddrinfo( hostname, portstr, &hints, &ai )) != 0 ) + { + (void) fprintf( +- stderr, "%s: getaddrinfo %s - %s\n", argv0, urls[url_num].hostname, ++ stderr, "%s: getaddrinfo %s - %s\n", argv0, hostname, + gai_strerror( gaierr ) ); + exit( 1 ); + } +@@ -724,15 +724,15 @@ + + (void) fprintf( + stderr, "%s: no valid address found for host %s\n", argv0, +- urls[url_num].hostname ); ++ hostname ); + exit( 1 ); + + #else /* USE_IPV6 */ + +- he = gethostbyname( urls[url_num].hostname ); ++ he = gethostbyname( hostname ); + if ( he == (struct hostent*) 0 ) + { +- (void) fprintf( stderr, "%s: unknown host - %s\n", argv0, urls[url_num].hostname ); ++ (void) fprintf( stderr, "%s: unknown host - %s\n", argv0, hostname ); + exit( 1 ); + } + urls[url_num].sock_family = urls[url_num].sa.sin_family = he->h_addrtype; @@ -825,6 +825,7 @@ ClientData client_data; int flags; |