From 4d0d6eb415a9f2d73e8df3d54ecde82d3c3fc0d6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 5 Dec 2013 23:03:54 -0400 Subject: same fix as android for windows getAddrInfo not working --- Utility/WebApp.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Utility') 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 -- cgit v1.2.3