Thanks Julien :)
[apps/madmutt.git] / lib-sys / mutt_socket.c
index b6ea846..8616440 100644 (file)
@@ -15,7 +15,7 @@
 #include <netdb.h>
 #include <sys/socket.h>
 
-#include <lib-ui/curses.h>
+#include <lib-ui/lib-ui.h>
 
 #include "mutt.h"
 #include "globals.h"
@@ -320,11 +320,7 @@ int raw_socket_open (CONNECTION * conn)
   /* we accept v4 or v6 STREAM sockets */
   p_clear(&hints, 1);
 
-  if (option (OPTUSEIPV6))
-    hints.ai_family = AF_UNSPEC;
-  else
-    hints.ai_family = AF_INET;
-
+  hints.ai_family   = AF_UNSPEC;
   hints.ai_socktype = SOCK_STREAM;
 
   snprintf (port, sizeof (port), "%d", conn->account.port);