]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxser.c
Fix a couple of signedness compiler warnings, presumably due to me
[PuTTY.git] / unix / uxser.c
index 454d7b36e1291b5f90653778ae8c3f6c8b751ad0..24b0124cb4aba9fad9735f1a3901bd8e6b8c2477 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;