diff --git a/chronos/transports/datagram.nim b/chronos/transports/datagram.nim index 4333123..f3f2eb4 100644 --- a/chronos/transports/datagram.nim +++ b/chronos/transports/datagram.nim @@ -15,10 +15,11 @@ when defined(windows): import winlean else: import posix - var IP_MULTICAST_TTL* {.importc: "IP_MULTICAST_TTL", - header: "".}: cint - var IPV6_MULTICAST_HOPS* {.importc: "IPV6_MULTICAST_HOPS", - header: "".}: cint + when (defined(linux) and not defined(android)) and defined(amd64): + const IP_MULTICAST_TTL: cint = 33 + else: + var IP_MULTICAST_TTL* {.importc: "IP_MULTICAST_TTL", + header: "".}: cint type VectorKind = enum