ports/databases/firebird30-server/files/patch-src_remote_SockAddr.h
Jose Alonso Cardenas Marquez ca43515803 databases/fireird30-[client|server]: New port: Firebird-3 relational database
Firebird is a relational database offering many ANSI SQL-99 features
that runs on Linux, Windows, and a variety of Unix platforms.  Firebird
offers excellent concurrency, high performance, and powerful language
support for stored procedures and triggers.  It has been used in
production systems, under a variety of names since 1981.

Firebird is completely free of any registration, licensing or deployment
fees.  It may be deployed freely for use with any third-party software,
whether commercial or not.

WWW: https://sourceforge.net/projects/firebird/
WWW: http://www.firebirdsql.org/
PR:		254387
2021-06-27 20:14:20 -05:00

25 lines
656 B
C

--- src/remote/SockAddr.h.orig 2020-10-12 00:02:22 UTC
+++ src/remote/SockAddr.h
@@ -112,11 +112,13 @@ public:
#define AF_INET6_POSIX 10
#define AF_INET6_WINDOWS 23
+#define AF_INET6_BSD 28
#define AF_INET6_DARWIN 30
#if AF_INET6 == AF_INET6_POSIX
#elif AF_INET6 == AF_INET6_WINDOWS
#elif AF_INET6 == AF_INET6_DARWIN
+#elif AF_INET6 == AF_INET6_BSD
#else
#error Unknown value of AF_INET6 !
#endif
@@ -132,6 +134,7 @@ inline void SockAddr::checkAndFixFamily(
case AF_INET6_POSIX:
case AF_INET6_WINDOWS:
case AF_INET6_DARWIN:
+ case AF_INET6_BSD:
data.sock.sa_family = AF_INET6;
fb_assert(len == sizeof(sockaddr_in6));
break;