summaryrefslogtreecommitdiff
path: root/net/libupnp/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'net/libupnp/patches/patch-ac')
-rw-r--r--net/libupnp/patches/patch-ac29
1 files changed, 15 insertions, 14 deletions
diff --git a/net/libupnp/patches/patch-ac b/net/libupnp/patches/patch-ac
index b0097b7d534..56fff151392 100644
--- a/net/libupnp/patches/patch-ac
+++ b/net/libupnp/patches/patch-ac
@@ -1,6 +1,6 @@
-$NetBSD: patch-ac,v 1.4 2007/08/19 01:36:22 obache Exp $
+$NetBSD: patch-ac,v 1.5 2007/11/08 03:56:58 obache Exp $
---- upnp/src/genlib/net/uri/uri.c.orig 2007-06-09 12:53:47.000000000 +0000
+--- upnp/src/genlib/net/uri/uri.c.orig 2007-08-06 01:21:23.000000000 +0000
+++ upnp/src/genlib/net/uri/uri.c
@@ -625,9 +625,9 @@ parse_hostport( const char *in,
//call gethostbyname_r (reentrant form of gethostbyname)
@@ -8,27 +8,28 @@ $NetBSD: patch-ac,v 1.4 2007/08/19 01:36:22 obache Exp $
// platform-specific stuff below
-#if defined(WIN32) || defined(__CYGWIN__)
+#if defined(WIN32) || defined(__CYGWIN__) || defined(_AIX50) || defined(__upux11)
- h=gethostbyname(temp_host_name);
+ h = gethostbyname(temp_host_name);
-#elif defined(SPARC_SOLARIS)
+#elif defined(sun) || defined(__sun) || defined(sgi) || defined(__sgi)
- errCode = gethostbyname_r( temp_host_name,
- &h,
- temp_hostbyname_buff,
-@@ -640,11 +640,16 @@ parse_hostport( const char *in,
+ errCode = gethostbyname_r(
+ temp_host_name,
+ &h,
+@@ -647,12 +647,17 @@ parse_hostport( const char *in,
if ( h == NULL ) {
- errCode = 1;
+ errCode = 1;
}
-#elif defined(__linux__)
+#elif defined(__GLIBC__)
- errCode = gethostbyname_r( temp_host_name,
- &h_buf,
- temp_hostbyname_buff,
- BUFFER_SIZE, &h, &errcode );
+ errCode = gethostbyname_r(
+ temp_host_name,
+ &h_buf,
+ temp_hostbyname_buff,
+ BUFFER_SIZE, &h, &errcode );
+#elif defined(__osf1__) || defined(__hpux) || defined(_AIX)
+ errCode = gethostbyname_r( temp_host_name,
+ &h_buf,
+ (struct hostent_data*)temp_hostbyname_buff);
+ h = &h_buf;
#else
- {
- struct addrinfo hints, *res, *res0;
+ {
+ struct addrinfo hints, *res, *res0;