Lines 1-15
Link Here
|
1 |
--- ace/OS_NS_netdb.inl.orig 2011-03-21 21:54:52.000000000 +0900 |
1 |
--- ace/OS_NS_netdb.inl.orig 2015-09-17 06:55:18 UTC |
2 |
+++ ace/OS_NS_netdb.inl 2011-11-27 07:46:06.000000000 +0900 |
2 |
+++ ace/OS_NS_netdb.inl |
3 |
@@ -6,6 +6,8 @@ |
3 |
@@ -3,6 +3,8 @@ |
4 |
#include "ace/OS_NS_string.h" |
4 |
#include "ace/OS_NS_string.h" |
5 |
#include "ace/OS_NS_errno.h" |
5 |
#include "ace/OS_NS_errno.h" |
6 |
|
6 |
|
7 |
+#include <sys/param.h> |
7 |
+#include <sys/param.h> |
8 |
+ |
8 |
+ |
9 |
#if defined (ACE_LACKS_NETDB_REENTRANT_FUNCTIONS) |
9 |
#if defined (ACE_LACKS_NETDB_REENTRANT_FUNCTIONS) |
10 |
# if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) |
10 |
# if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) && !defined (HPUX_11) |
11 |
# define ACE_NETDBCALL_RETURN(OP,TYPE,FAILVALUE,TARGET,SIZE) \ |
11 |
# define ACE_NETDBCALL_RETURN(OP,TYPE,FAILVALUE,TARGET,SIZE) \ |
12 |
@@ -119,7 +121,7 @@ |
12 |
@@ -116,7 +118,7 @@ ACE_OS::gethostbyaddr_r (const char *add |
13 |
*h_errnop = h_errno; |
13 |
*h_errnop = h_errno; |
14 |
return (struct hostent *) 0; |
14 |
return (struct hostent *) 0; |
15 |
} |
15 |
} |
Lines 18-24
Link Here
|
18 |
// GNU C library has a different signature |
18 |
// GNU C library has a different signature |
19 |
ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA)); |
19 |
ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA)); |
20 |
|
20 |
|
21 |
@@ -304,7 +306,7 @@ |
21 |
@@ -301,7 +303,7 @@ ACE_OS::gethostbyname_r (const char *nam |
22 |
*h_errnop = h_errno; |
22 |
*h_errnop = h_errno; |
23 |
return (struct hostent *) 0; |
23 |
return (struct hostent *) 0; |
24 |
} |
24 |
} |
Lines 27-33
Link Here
|
27 |
// GNU C library has a different signature |
27 |
// GNU C library has a different signature |
28 |
ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA)); |
28 |
ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA)); |
29 |
|
29 |
|
30 |
@@ -517,7 +519,7 @@ |
30 |
@@ -514,7 +516,7 @@ ACE_OS::getprotobyname_r (const char *na |
31 |
else |
31 |
else |
32 |
return 0; |
32 |
return 0; |
33 |
//FUZZ: enable check_for_lack_ACE_OS |
33 |
//FUZZ: enable check_for_lack_ACE_OS |
Lines 36-42
Link Here
|
36 |
// GNU C library has a different signature |
36 |
// GNU C library has a different signature |
37 |
//FUZZ: disable check_for_lack_ACE_OS |
37 |
//FUZZ: disable check_for_lack_ACE_OS |
38 |
if (::getprotobyname_r (name, |
38 |
if (::getprotobyname_r (name, |
39 |
@@ -598,7 +600,7 @@ |
39 |
@@ -595,7 +597,7 @@ ACE_OS::getprotobynumber_r (int proto, |
40 |
//FUZZ: enable check_for_lack_ACE_OS |
40 |
//FUZZ: enable check_for_lack_ACE_OS |
41 |
else |
41 |
else |
42 |
return 0; |
42 |
return 0; |
Lines 45-51
Link Here
|
45 |
// GNU C library has a different signature |
45 |
// GNU C library has a different signature |
46 |
//FUZZ: disable check_for_lack_ACE_OS |
46 |
//FUZZ: disable check_for_lack_ACE_OS |
47 |
if (::getprotobynumber_r (proto, |
47 |
if (::getprotobynumber_r (proto, |
48 |
@@ -684,7 +686,7 @@ |
48 |
@@ -681,7 +683,7 @@ ACE_OS::getservbyname_r (const char *svc |
49 |
//FUZZ: enable check_for_lack_ACE_OS |
49 |
//FUZZ: enable check_for_lack_ACE_OS |
50 |
else |
50 |
else |
51 |
return (struct servent *) 0; |
51 |
return (struct servent *) 0; |