diff options
author | Joey Hess <joey@kitenet.net> | 2013-12-05 23:03:54 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-12-05 23:03:54 -0400 |
commit | 4d0d6eb415a9f2d73e8df3d54ecde82d3c3fc0d6 (patch) | |
tree | 7ec6f76a683c7b3c1748561881ae39f7943d3406 /Utility | |
parent | fa3dce90363b33476b26a980d63204207fbe8fde (diff) |
same fix as android for windows getAddrInfo not working
Diffstat (limited to 'Utility')
-rw-r--r-- | Utility/WebApp.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Utility/WebApp.hs b/Utility/WebApp.hs index 421dadb39..7148dfce3 100644 --- a/Utility/WebApp.hs +++ b/Utility/WebApp.hs @@ -93,11 +93,11 @@ webAppSettings = defaultSettings -} getSocket :: Maybe HostName -> IO Socket getSocket h = do -#ifdef __ANDROID__ +#if defined(__ANDROID__) || defined (mingw32_HOST_OS) -- getAddrInfo currently segfaults on Android. -- The HostName is ignored by this code. when (isJust h) $ - error "getSocket with HostName not supported on Android" + error "getSocket with HostName not supported on this OS" addr <- inet_addr "127.0.0.1" sock <- socket AF_INET Stream defaultProtocol preparesocket sock |