]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxser.c
Implement Marcin Bulandra's suggestion of only automatically updating the
[PuTTY.git] / unix / uxser.c
index 454d7b36e1291b5f90653778ae8c3f6c8b751ad0..92961a7de9928c5bcc7972d524e6cc8785c9820c 100644 (file)
@@ -214,7 +214,16 @@ static const char *serial_configure(Serial serial, Config *cfg)
 #ifdef ONLCR
                         | ONLCR
 #endif
-                        | OCRNL | ONOCR | ONLRET);
+#ifdef OCRNL
+                        | OCRNL
+#endif
+#ifdef ONOCR
+                        | ONOCR
+#endif
+#ifdef ONLRET
+                        | ONLRET
+#endif
+                        );
     options.c_cc[VMIN] = 1;
     options.c_cc[VTIME] = 0;
 
@@ -527,5 +536,7 @@ Backend serial_backend = {
     serial_provide_logctx,
     serial_unthrottle,
     serial_cfg_info,
-    1
+    "serial",
+    PROT_SERIAL,
+    0
 };