diff options
author | marcus <marcus@FreeBSD.org> | 2004-03-26 01:38:45 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-03-26 01:38:45 +0800 |
commit | 78ab801b011b269506e7eaf8894f83fd53746549 (patch) | |
tree | 7078730671284a301d77b2304741de1df4b92687 /net | |
parent | abf8893a727d3bec10aae1cffc02d4d7458d7174 (diff) | |
download | freebsd-ports-gnome-78ab801b011b269506e7eaf8894f83fd53746549.tar.gz freebsd-ports-gnome-78ab801b011b269506e7eaf8894f83fd53746549.tar.zst freebsd-ports-gnome-78ab801b011b269506e7eaf8894f83fd53746549.zip |
Fix gaim's name resolution on 64-bit platforms.
Submitted by: Kenneth Culver <culverk@sweetdreamsracing.biz>
Diffstat (limited to 'net')
-rw-r--r-- | net/gaim/Makefile | 2 | ||||
-rw-r--r-- | net/gaim/files/patch-src::proxy.c | 42 |
2 files changed, 24 insertions, 20 deletions
diff --git a/net/gaim/Makefile b/net/gaim/Makefile index 573aec85bf67..3c56d2e58a0a 100644 --- a/net/gaim/Makefile +++ b/net/gaim/Makefile @@ -6,7 +6,7 @@ PORTNAME= gaim PORTVERSION= 0.75 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES?= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/net/gaim/files/patch-src::proxy.c b/net/gaim/files/patch-src::proxy.c index bbf4a19b3124..2a8ede90c94e 100644 --- a/net/gaim/files/patch-src::proxy.c +++ b/net/gaim/files/patch-src::proxy.c @@ -1,19 +1,23 @@ -*** src/proxy.c.orig Thu Jan 22 08:27:26 2004 ---- src/proxy.c Thu Jan 22 08:28:05 2004 -*************** -*** 974,980 **** - - gaim_input_remove(phb->inpa); - -! while ((nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) { - if (inputline[pos - 1] == '\n') - nlc++; - else if (inputline[pos - 1] != '\r') ---- 974,980 ---- - - gaim_input_remove(phb->inpa); - -! while ((pos < sizeof(inputline)-1) && (nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) { - if (inputline[pos - 1] == '\n') - nlc++; - else if (inputline[pos - 1] != '\r') +--- src/proxy.c.orig Fri Jan 9 23:04:56 2004 ++++ src/proxy.c Thu Mar 25 12:37:20 2004 +@@ -388,7 +388,11 @@ + int rc, err; + GSList *hosts = NULL; + struct sockaddr *addr = NULL; ++#if HAVE_GETADDRINFO ++ size_t addrlen; ++#else + socklen_t addrlen; ++#endif + + gaim_debug(GAIM_DEBUG_INFO, "dns", "Host '%s' resolved\n", req->host); + gaim_input_remove(req->inpa); +@@ -974,7 +978,7 @@ + + gaim_input_remove(phb->inpa); + +- while ((nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) { ++ while ((pos < sizeof(inputline)-1) && (nlc != 2) && (read(source, &inputline[pos++], 1) == 1)) { + if (inputline[pos - 1] == '\n') + nlc++; + else if (inputline[pos - 1] != '\r') |