Restore build on FreeBSD.

This commit is contained in:
derex 2008-11-01 21:21:12 +02:00 committed by tomrus88
parent e4a2d43a47
commit 3f5d1903a5
2 changed files with 6 additions and 5 deletions

View file

@ -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));

View file

@ -25,6 +25,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/os_types.h"
#include "ace/os_include/os_pthread.h"
#if !defined (ACE_LACKS_SIGNAL_H)
extern "C" {