Implement Simon's suggestion of moving DEFAULT_PROTOCOL into a per-backend-
[u/mdw/putty] / be_all.c
index 69e44b7..a48cc70 100644 (file)
--- a/be_all.c
+++ b/be_all.c
@@ -3,13 +3,19 @@
  * including ssh.
  */
 
-#include <windows.h>
 #include <stdio.h>
 #include "putty.h"
 
+#ifdef TELNET_DEFAULT
+const int be_default_protocol = PROT_TELNET;
+#else
+const int be_default_protocol = PROT_SSH;
+#endif
+
 struct backend_list backends[] = {
     {PROT_SSH, "ssh", &ssh_backend},
     {PROT_TELNET, "telnet", &telnet_backend},
+    {PROT_RLOGIN, "rlogin", &rlogin_backend},
     {PROT_RAW, "raw", &raw_backend},
     {0, NULL}
 };