Ticket #26 (closed defect: fixed)
Doesn't build with GHC >= 6.12 on non-Windows
|Reported by:||kolmodin||Owned by:|
Recently released version network-188.8.131.52 doesn't build on GHC >= 6.12 unless you're using Windows.
This is from a linux machine:
Preprocessing library network-184.108.40.206... Building network-220.127.116.11... [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.