Miscellaneous fixes to try to make other compilers happier
[u/mdw/putty] / be_none.c
index 0ec3a79..8151b3d 100644 (file)
--- a/be_none.c
+++ b/be_none.c
@@ -1,13 +1,23 @@
 /*
- * Linking module for PSCP: list no available backends. This is
- * only present to satisfy linker requirements. I should really
- * untangle the whole lot a bit better.
+ * Linking module for PSCP: list the available backends, but
+ * without accompanying function suites. Used only for name
+ * lookups.
  */
 
 #include <windows.h>
+#ifndef AUTO_WINSOCK
+#ifdef WINSOCK_TWO
+#include <winsock2.h>
+#else
+#include <winsock.h>
+#endif
+#endif
 #include <stdio.h>
 #include "putty.h"
 
 struct backend_list backends[] = {
+    {PROT_SSH, "ssh", NULL},
+    {PROT_TELNET, "telnet", NULL},
+    {PROT_RAW, "raw", NULL},
     {0, NULL}
 };