Support for New Session, Duplicate Session and the Saved Sessions
[u/mdw/putty] / unix / ptermm.c
index 9a27f23..84510e7 100644 (file)
@@ -3,9 +3,14 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 
 #include "putty.h"
 
+const char *const appname = "pterm";
+const int use_event_log = 0;          /* pterm doesn't need it */
+const int new_session = 0, saved_sessions = 0;   /* or these */
+
 Backend *select_backend(Config *cfg)
 {
     return &pty_backend;
@@ -16,6 +21,11 @@ int cfgbox(Config *cfg)
     return 1;                         /* no-op in pterm */
 }
 
+void cleanup_exit(int code)
+{
+    exit(code);
+}
+
 int process_nonoption_arg(char *arg, Config *cfg)
 {
     return 0;                          /* pterm doesn't have any. */