]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Add more ifdefs to make uxser.c compile on OS X.
authorSimon Tatham <anakin@pobox.com>
Tue, 16 Jan 2007 19:26:24 +0000 (19:26 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 16 Jan 2007 19:26:24 +0000 (19:26 +0000)
[originally from svn r7118]

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;