Introduce a sane interface function, from_backend(), for backends to
[u/mdw/putty] / be_none.c
index f729e25..8151b3d 100644 (file)
--- a/be_none.c
+++ b/be_none.c
@@ -5,6 +5,13 @@
  */
 
 #include <windows.h>
+#ifndef AUTO_WINSOCK
+#ifdef WINSOCK_TWO
+#include <winsock2.h>
+#else
+#include <winsock.h>
+#endif
+#endif
 #include <stdio.h>
 #include "putty.h"
 
@@ -12,4 +19,5 @@ struct backend_list backends[] = {
     {PROT_SSH, "ssh", NULL},
     {PROT_TELNET, "telnet", NULL},
     {PROT_RAW, "raw", NULL},
+    {0, NULL}
 };