diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-08-16 01:22:21 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-08-16 01:22:21 +0200 |
commit | e4c759fbffae852b938a076de38ba2df4eab6afa (patch) | |
tree | f793335b31a460cae2966dd407ec934671ecc9ee /lib/pure/nativesockets.nim | |
parent | b78114ce507757cd79649212bd17dc86965aa4ef (diff) | |
parent | 531c66d1ec583a35d8d6bc637c94457fcd87a8e3 (diff) | |
download | Nim-e4c759fbffae852b938a076de38ba2df4eab6afa.tar.gz |
Merge branch 'devel' into araq-misc
Diffstat (limited to 'lib/pure/nativesockets.nim')
-rw-r--r-- | lib/pure/nativesockets.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pure/nativesockets.nim b/lib/pure/nativesockets.nim index 5545ca2d1..d5fb0f89b 100644 --- a/lib/pure/nativesockets.nim +++ b/lib/pure/nativesockets.nim @@ -248,9 +248,10 @@ proc getAddrInfo*(address: string, port: Port, domain: Domain = AF_INET, hints.ai_socktype = toInt(sockType) hints.ai_protocol = toInt(protocol) # OpenBSD doesn't support AI_V4MAPPED and doesn't define the macro AI_V4MAPPED. - # FreeBSD doesn't support AI_V4MAPPED but defines the macro. + # FreeBSD, Haiku don't support AI_V4MAPPED but defines the macro. # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198092 - when not defined(freebsd) and not defined(openbsd) and not defined(netbsd) and not defined(android): + # https://dev.haiku-os.org/ticket/14323 + when not defined(freebsd) and not defined(openbsd) and not defined(netbsd) and not defined(android) and not defined(haiku): if domain == AF_INET6: hints.ai_flags = AI_V4MAPPED var gaiResult = getaddrinfo(address, $port, addr(hints), result) |