8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:43:03 +01:00

add AF_INET_* support for FreeBSD

This commit is contained in:
James Clarke 2021-09-12 14:02:12 +00:00 committed by Alexander Peshkov
parent 7f5bcae885
commit e259c6c0fd

View File

@ -106,10 +106,12 @@ public:
#define AF_INET6_POSIX 10
#define AF_INET6_WINDOWS 23
#define AF_INET6_FREEBSD 28
#define AF_INET6_DARWIN 30
#if AF_INET6 == AF_INET6_POSIX
#elif AF_INET6 == AF_INET6_WINDOWS
#elif AF_INET6 == AF_INET6_FREEBSD
#elif AF_INET6 == AF_INET6_DARWIN
#else
#error Unknown value of AF_INET6 !
@ -125,6 +127,7 @@ inline void SockAddr::checkAndFixFamily()
case AF_INET6_POSIX:
case AF_INET6_WINDOWS:
case AF_INET6_FREEBSD:
case AF_INET6_DARWIN:
data.sock.sa_family = AF_INET6;
fb_assert(len == sizeof(sockaddr_in6));