mirror of
https://git.freebsd.org/ports.git
synced 2025-05-21 03:23:10 -04:00
56 lines
2.1 KiB
C++
56 lines
2.1 KiB
C++
--- ace/OS_NS_netdb.inl.orig 2015-09-17 06:55:18 UTC
|
|
+++ ace/OS_NS_netdb.inl
|
|
@@ -3,6 +3,8 @@
|
|
#include "ace/OS_NS_string.h"
|
|
#include "ace/OS_NS_errno.h"
|
|
|
|
+#include <sys/param.h>
|
|
+
|
|
#if defined (ACE_LACKS_NETDB_REENTRANT_FUNCTIONS)
|
|
# if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) && !defined (HPUX_11)
|
|
# define ACE_NETDBCALL_RETURN(OP,TYPE,FAILVALUE,TARGET,SIZE) \
|
|
@@ -116,7 +118,7 @@ ACE_OS::gethostbyaddr_r (const char *add
|
|
*h_errnop = h_errno;
|
|
return (struct hostent *) 0;
|
|
}
|
|
-# elif defined (__GLIBC__)
|
|
+# elif defined (__GLIBC__) || (defined(__FreeBSD__) && __FreeBSD_version >= 700015)
|
|
// GNU C library has a different signature
|
|
ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA));
|
|
|
|
@@ -301,7 +303,7 @@ ACE_OS::gethostbyname_r (const char *nam
|
|
*h_errnop = h_errno;
|
|
return (struct hostent *) 0;
|
|
}
|
|
-# elif defined (__GLIBC__)
|
|
+# elif defined (__GLIBC__) || (defined(__FreeBSD__) && __FreeBSD_version >= 700015)
|
|
// GNU C library has a different signature
|
|
ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA));
|
|
|
|
@@ -514,7 +516,7 @@ ACE_OS::getprotobyname_r (const char *na
|
|
else
|
|
return 0;
|
|
//FUZZ: enable check_for_lack_ACE_OS
|
|
-# elif defined (__GLIBC__)
|
|
+# elif defined (__GLIBC__) || (defined(__FreeBSD__) && __FreeBSD_version >= 700015)
|
|
// GNU C library has a different signature
|
|
//FUZZ: disable check_for_lack_ACE_OS
|
|
if (::getprotobyname_r (name,
|
|
@@ -595,7 +597,7 @@ ACE_OS::getprotobynumber_r (int proto,
|
|
//FUZZ: enable check_for_lack_ACE_OS
|
|
else
|
|
return 0;
|
|
-# elif defined (__GLIBC__)
|
|
+# elif defined (__GLIBC__) || (defined(__FreeBSD__) && __FreeBSD_version >= 700015)
|
|
// GNU C library has a different signature
|
|
//FUZZ: disable check_for_lack_ACE_OS
|
|
if (::getprotobynumber_r (proto,
|
|
@@ -681,7 +683,7 @@ ACE_OS::getservbyname_r (const char *svc
|
|
//FUZZ: enable check_for_lack_ACE_OS
|
|
else
|
|
return (struct servent *) 0;
|
|
-# elif defined (__GLIBC__)
|
|
+# elif defined (__GLIBC__) || (defined(__FreeBSD__) && __FreeBSD_version >= 700015)
|
|
// GNU C library has a different signature
|
|
ACE_OS::memset (buf, 0, sizeof (ACE_SERVENT_DATA));
|
|
|