Ticket #26 (closed defect: fixed)
Doesn't build with GHC >= 6.12 on non-Windows
| Reported by: | kolmodin | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 2.2.1.7 |
| Component: | network | Version: | 2.0 |
| Keywords: | Cc: |
Description
Recently released version network-2.2.1.6 doesn't build on GHC >= 6.12 unless you're using Windows.
This is from a linux machine:
Preprocessing library network-2.2.1.6...
Building network-2.2.1.6...
[1 of 5] Compiling Network.URI ( Network/URI.hs, dist/build/Network/URI.o )
[2 of 5] Compiling Network.Socket.Internal ( dist/build/Network/Socket/Internal.hs,
dist/build/Network/Socket/Internal.o )
[3 of 5] Compiling Network.Socket ( dist/build/Network/Socket.hs, dist/build/Netwo
rk/Socket.o )
Network/Socket.hsc:307:15:
`fdIsSocket_' is not a (visible) field of constructor `FD'
The function socket2FD is used conditionally, as it only works on windows.
The attached patch makes sure socket2FD is declared only when on windows.
Change History
Note: See
TracTickets for help on using
tickets.
