Skip to content

Commit

Permalink
Fix #15452 - ip protocol not defined on NetBSD (#15453)
Browse files Browse the repository at this point in the history
  • Loading branch information
euantorano authored Oct 1, 2020
1 parent 37e0d6f commit b4fe0c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/stdlib/tgetprotobyname.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ discard """
import nativesockets


doAssert getProtoByName("ip") == 0
when not defined(netbsd):
# Ref: https://github.com/nim-lang/Nim/issues/15452 - NetBSD doesn't define an `ip` protocol
doAssert getProtoByName("ip") == 0

doAssert getProtoByName("ipv6") == 41
doAssert getProtoByName("tcp") == 6
doAssert getProtoByName("udp") == 17
Expand Down

0 comments on commit b4fe0c8

Please sign in to comment.