]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Clean the last remnant of ISC_PLATFORM_HAVEIPV6 macro
authorOndřej Surý <ondrej@isc.org>
Thu, 8 Oct 2020 06:26:28 +0000 (08:26 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 8 Oct 2020 06:28:33 +0000 (08:28 +0200)
In set_sndbuf() we were using ISC_PLATFORM_HAVEIPV6 macro that doesn't
exist anymore, because we assume that IPv6 support is always available.

lib/isc/unix/socket.c

index e3f1108242384256d220951f82ada2b8b7bca923..b599932d4f081788eac24931befbda5f332a2be5 100644 (file)
@@ -2018,7 +2018,6 @@ set_sndbuf(void) {
        socklen_t len;
 
        fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
-#if defined(ISC_PLATFORM_HAVEIPV6)
        if (fd == -1) {
                switch (errno) {
                case EPROTONOSUPPORT:
@@ -2033,7 +2032,6 @@ set_sndbuf(void) {
                        break;
                }
        }
-#endif /* if defined(ISC_PLATFORM_HAVEIPV6) */
        if (fd == -1) {
                return;
        }