Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a couple of broken tests on OpenBSD #498

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Network/Socket/Posix/Cmsg.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pattern UnsupportedCmsgId = CmsgId (-1) (-1)

-- | The identifier for 'IPv4TTL'.
pattern CmsgIdIPv4TTL :: CmsgId
#if defined(darwin_HOST_OS) || defined(freebsd_HOST_OS)
#if defined(darwin_HOST_OS) || defined(freebsd_HOST_OS) || defined(openbsd_HOST_OS)
pattern CmsgIdIPv4TTL = CmsgId (#const IPPROTO_IP) (#const IP_RECVTTL)
#else
pattern CmsgIdIPv4TTL = CmsgId (#const IPPROTO_IP) (#const IP_TTL)
Expand Down Expand Up @@ -131,7 +131,7 @@ decodeCmsg (Cmsg cmsid (PS fptr off len))
----------------------------------------------------------------

-- | Time to live of IPv4.
#if defined(darwin_HOST_OS) || defined(freebsd_HOST_OS)
#if defined(darwin_HOST_OS) || defined(freebsd_HOST_OS) || defined(openbsd_HOST_OS)
newtype IPv4TTL = IPv4TTL CChar deriving (Eq, Show, Storable)
#else
newtype IPv4TTL = IPv4TTL CInt deriving (Eq, Show, Storable)
Expand Down
2 changes: 1 addition & 1 deletion tests/Network/SocketSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ spec = do

#if defined(mingw32_HOST_OS)
let lpdevname = "loopback_0"
#elif defined(darwin_HOST_OS) || defined(freebsd_HOST_OS)
#elif defined(darwin_HOST_OS) || defined(freebsd_HOST_OS) || defined(openbsd_HOST_OS)
let lpdevname = "lo0"
#else
let lpdevname = "lo"
Expand Down