mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
add AF_INET_* support for FreeBSD
This commit is contained in:
parent
218d4cc86b
commit
da76939d04
@ -106,10 +106,12 @@ public:
|
|||||||
|
|
||||||
#define AF_INET6_POSIX 10
|
#define AF_INET6_POSIX 10
|
||||||
#define AF_INET6_WINDOWS 23
|
#define AF_INET6_WINDOWS 23
|
||||||
|
#define AF_INET6_FREEBSD 28
|
||||||
#define AF_INET6_DARWIN 30
|
#define AF_INET6_DARWIN 30
|
||||||
|
|
||||||
#if AF_INET6 == AF_INET6_POSIX
|
#if AF_INET6 == AF_INET6_POSIX
|
||||||
#elif AF_INET6 == AF_INET6_WINDOWS
|
#elif AF_INET6 == AF_INET6_WINDOWS
|
||||||
|
#elif AF_INET6 == AF_INET6_FREEBSD
|
||||||
#elif AF_INET6 == AF_INET6_DARWIN
|
#elif AF_INET6 == AF_INET6_DARWIN
|
||||||
#else
|
#else
|
||||||
#error Unknown value of AF_INET6 !
|
#error Unknown value of AF_INET6 !
|
||||||
@ -125,6 +127,7 @@ inline void SockAddr::checkAndFixFamily()
|
|||||||
|
|
||||||
case AF_INET6_POSIX:
|
case AF_INET6_POSIX:
|
||||||
case AF_INET6_WINDOWS:
|
case AF_INET6_WINDOWS:
|
||||||
|
case AF_INET6_FREEBSD:
|
||||||
case AF_INET6_DARWIN:
|
case AF_INET6_DARWIN:
|
||||||
data.sock.sa_family = AF_INET6;
|
data.sock.sa_family = AF_INET6;
|
||||||
fb_assert(len == sizeof(sockaddr_in6));
|
fb_assert(len == sizeof(sockaddr_in6));
|
||||||
|
Loading…
Reference in New Issue
Block a user