aboutsummaryrefslogtreecommitdiff
path: root/src/platform/posix
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-21 20:11:02 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-21 20:11:02 -0800
commitebcd44e81326baefa892743a2da28fa3d5aa680d (patch)
tree51da2f6418e3076911c451fe953b00e614ec329d /src/platform/posix
parent96599e154b668168d138460f32391b27c0fc6980 (diff)
downloadnng-ebcd44e81326baefa892743a2da28fa3d5aa680d.tar.gz
nng-ebcd44e81326baefa892743a2da28fa3d5aa680d.tar.bz2
nng-ebcd44e81326baefa892743a2da28fa3d5aa680d.zip
posix udp: AF_INET6 fixup
Diffstat (limited to 'src/platform/posix')
-rw-r--r--src/platform/posix/posix_udp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platform/posix/posix_udp.c b/src/platform/posix/posix_udp.c
index 667fbaec..f24940db 100644
--- a/src/platform/posix/posix_udp.c
+++ b/src/platform/posix/posix_udp.c
@@ -220,7 +220,9 @@ nni_plat_udp_open(nni_plat_udp **upp, nni_sockaddr *bindaddr)
}
switch (bindaddr->s_family) {
case NNG_AF_INET:
+#ifdef NNG_ENABLE_IPV6
case NNG_AF_INET6:
+#endif
break;
default:
return (NNG_EADDRINVAL);