mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 21:00:30 -04:00
56 lines
1.9 KiB
C++
56 lines
1.9 KiB
C++
--- ace/OS_NS_netdb.inl.orig 2011-03-21 21:54:52.000000000 +0900
|
|
+++ ace/OS_NS_netdb.inl 2011-11-27 07:46:06.000000000 +0900
|
|
@@ -6,6 +6,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)
|
|
# define ACE_NETDBCALL_RETURN(OP,TYPE,FAILVALUE,TARGET,SIZE) \
|
|
@@ -119,7 +121,7 @@
|
|
*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));
|
|
|
|
@@ -304,7 +306,7 @@
|
|
*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));
|
|
|
|
@@ -517,7 +519,7 @@
|
|
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,
|
|
@@ -598,7 +600,7 @@
|
|
//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,
|
|
@@ -684,7 +686,7 @@
|
|
//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));
|
|
|