diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-03-04 00:52:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-03 17:52:56 +0100 |
commit | 248850a0ce869c15fea16a35e248850d2df47c8d (patch) | |
tree | 3e61da6f567de37e200348c74db65071dc739a80 /lib/pure/nativesockets.nim | |
parent | 90fe1b340f93622f5f101ee93306b386a30eb206 (diff) | |
download | Nim-248850a0ce869c15fea16a35e248850d2df47c8d.tar.gz |
ref #23333; fixes AF_INET6 value on Linux (#23334)
ref #23333
Diffstat (limited to 'lib/pure/nativesockets.nim')
-rw-r--r-- | lib/pure/nativesockets.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/nativesockets.nim b/lib/pure/nativesockets.nim index 6d6b3097a..20ea9d77a 100644 --- a/lib/pure/nativesockets.nim +++ b/lib/pure/nativesockets.nim @@ -67,7 +67,7 @@ type ## some procedures, such as getaddrinfo) AF_UNIX = 1, ## for local socket (using a file). Unsupported on Windows. AF_INET = 2, ## for network protocol IPv4 or - AF_INET6 = when defined(macosx): 30 else: 23 ## for network protocol IPv6. + AF_INET6 = when defined(macosx): 30 elif defined(windows): 23 else: 10 ## for network protocol IPv6. SockType* = enum ## second argument to `socket` proc SOCK_STREAM = 1, ## reliable stream-oriented service or Stream Sockets |