fix android build

This commit is contained in:
Joey Hess 2013-05-06 16:45:49 -04:00
parent f7ebb61d80
commit 69bd8d0462

View file

@ -68,9 +68,9 @@ sshInputAForm hostnamefield def = SshInput
check_username = checkBool (all (`notElem` "/:@ \t") . T.unpack)
bad_username textField
bad_username = "bad user name" :: Text
#ifndef __ANDROID__
bad_hostname = "cannot resolve host name" :: Text
bad_username = "bad user name" :: Text
check_hostname = checkM (liftIO . checkdns) hostnamefield
checkdns t = do