Skip to content

Commit

Permalink
rescuing Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Feb 16, 2018
1 parent d0b11fb commit b80dbeb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Network/Socket/Types.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,11 @@ withSockAddr addr f = do
-- space. This constant holds the maximum allowable path length.
--
unixPathMax :: Int
#if defined(DOMAIN_SOCKET_SUPPORT)
unixPathMax = #const sizeof(((struct sockaddr_un *)NULL)->sun_path)
#else
unixPathMax = 0
#endif

-- We can't write an instance of 'Storable' for 'SockAddr' because
-- @sockaddr@ is a sum type of variable size but
Expand Down

1 comment on commit b80dbeb

@vdukhovni
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, good catch. Thanks.

Please sign in to comment.