fix cmake/ACE for freeBSD and Mac OSX
--HG-- branch : trunk
This commit is contained in:
@@ -125,7 +125,7 @@ ACE_OS::gethostbyaddr_r (const char *addr,
|
||||
*h_errnop = h_errno;
|
||||
return (struct hostent *) 0;
|
||||
}
|
||||
# elif defined (__GLIBC__)
|
||||
# elif defined (__GLIBC__) || defined (__FreeBSD__)
|
||||
// GNU C library has a different signature
|
||||
ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA));
|
||||
|
||||
@@ -318,7 +318,7 @@ ACE_OS::gethostbyname_r (const char *name,
|
||||
*h_errnop = h_errno;
|
||||
return (struct hostent *) 0;
|
||||
}
|
||||
# elif defined (__GLIBC__)
|
||||
# elif defined (__GLIBC__) || defined (__FreeBSD__)
|
||||
// GNU C library has a different signature
|
||||
ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA));
|
||||
|
||||
@@ -528,7 +528,7 @@ ACE_OS::getprotobyname_r (const char *name,
|
||||
else
|
||||
return 0;
|
||||
//FUZZ: enable check_for_lack_ACE_OS
|
||||
# elif defined (__GLIBC__)
|
||||
# elif defined (__GLIBC__) || defined (__FreeBSD__)
|
||||
// GNU C library has a different signature
|
||||
//FUZZ: disable check_for_lack_ACE_OS
|
||||
if (::getprotobyname_r (name,
|
||||
@@ -609,7 +609,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__)
|
||||
// GNU C library has a different signature
|
||||
//FUZZ: disable check_for_lack_ACE_OS
|
||||
if (::getprotobynumber_r (proto,
|
||||
@@ -695,7 +695,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__)
|
||||
// GNU C library has a different signature
|
||||
ACE_OS::memset (buf, 0, sizeof (ACE_SERVENT_DATA));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user