mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
Restore build on FreeBSD.
This commit is contained in:
parent
e4a2d43a47
commit
3f5d1903a5
2 changed files with 6 additions and 5 deletions
|
|
@ -125,7 +125,7 @@ ACE_OS::gethostbyaddr_r (const char *addr,
|
||||||
*h_errnop = h_errno;
|
*h_errnop = h_errno;
|
||||||
return (struct hostent *) 0;
|
return (struct hostent *) 0;
|
||||||
}
|
}
|
||||||
# elif defined (__GLIBC__)
|
# elif defined (__GLIBC__) || defined (__FreeBSD__)
|
||||||
// GNU C library has a different signature
|
// GNU C library has a different signature
|
||||||
ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA));
|
ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA));
|
||||||
|
|
||||||
|
|
@ -318,7 +318,7 @@ ACE_OS::gethostbyname_r (const char *name,
|
||||||
*h_errnop = h_errno;
|
*h_errnop = h_errno;
|
||||||
return (struct hostent *) 0;
|
return (struct hostent *) 0;
|
||||||
}
|
}
|
||||||
# elif defined (__GLIBC__)
|
# elif defined (__GLIBC__) || defined (__FreeBSD__)
|
||||||
// GNU C library has a different signature
|
// GNU C library has a different signature
|
||||||
ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA));
|
ACE_OS::memset (buffer, 0, sizeof (ACE_HOSTENT_DATA));
|
||||||
|
|
||||||
|
|
@ -528,7 +528,7 @@ ACE_OS::getprotobyname_r (const char *name,
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
//FUZZ: enable check_for_lack_ACE_OS
|
//FUZZ: enable check_for_lack_ACE_OS
|
||||||
# elif defined (__GLIBC__)
|
# elif defined (__GLIBC__) || defined (__FreeBSD__)
|
||||||
// GNU C library has a different signature
|
// GNU C library has a different signature
|
||||||
//FUZZ: disable check_for_lack_ACE_OS
|
//FUZZ: disable check_for_lack_ACE_OS
|
||||||
if (::getprotobyname_r (name,
|
if (::getprotobyname_r (name,
|
||||||
|
|
@ -609,7 +609,7 @@ ACE_OS::getprotobynumber_r (int proto,
|
||||||
//FUZZ: enable check_for_lack_ACE_OS
|
//FUZZ: enable check_for_lack_ACE_OS
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
# elif defined (__GLIBC__)
|
# elif defined (__GLIBC__) || defined (__FreeBSD__)
|
||||||
// GNU C library has a different signature
|
// GNU C library has a different signature
|
||||||
//FUZZ: disable check_for_lack_ACE_OS
|
//FUZZ: disable check_for_lack_ACE_OS
|
||||||
if (::getprotobynumber_r (proto,
|
if (::getprotobynumber_r (proto,
|
||||||
|
|
@ -695,7 +695,7 @@ ACE_OS::getservbyname_r (const char *svc,
|
||||||
//FUZZ: enable check_for_lack_ACE_OS
|
//FUZZ: enable check_for_lack_ACE_OS
|
||||||
else
|
else
|
||||||
return (struct servent *) 0;
|
return (struct servent *) 0;
|
||||||
# elif defined (__GLIBC__)
|
# elif defined (__GLIBC__) || defined (__FreeBSD__)
|
||||||
// GNU C library has a different signature
|
// GNU C library has a different signature
|
||||||
ACE_OS::memset (buf, 0, sizeof (ACE_SERVENT_DATA));
|
ACE_OS::memset (buf, 0, sizeof (ACE_SERVENT_DATA));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
#endif /* ACE_LACKS_PRAGMA_ONCE */
|
#endif /* ACE_LACKS_PRAGMA_ONCE */
|
||||||
|
|
||||||
#include "ace/os_include/sys/os_types.h"
|
#include "ace/os_include/sys/os_types.h"
|
||||||
|
#include "ace/os_include/os_pthread.h"
|
||||||
|
|
||||||
#if !defined (ACE_LACKS_SIGNAL_H)
|
#if !defined (ACE_LACKS_SIGNAL_H)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue