From 211a3a4b04d98ad2d9d185c9b49756e0144f2226 Mon Sep 17 00:00:00 2001 From: cjdebenh Date: Tue, 15 May 2001 03:59:01 +0000 Subject: [PATCH] update for Solaris - use ifdef around cfmakeraw, include config.h --- server/drivers/glkproto.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/drivers/glkproto.c b/server/drivers/glkproto.c index e4b06a8..84e1e99 100644 --- a/server/drivers/glkproto.c +++ b/server/drivers/glkproto.c @@ -13,6 +13,9 @@ #include #include #include "glkproto.h" +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif #define INLINE inline #undef MANUAL_FLOWCONTROL @@ -78,7 +81,11 @@ GLKDisplay * * framing errors incase the module transmits back * to back with only one stop bit. */ +#ifndef IRIX +#ifndef SOLARIS cfmakeraw( &new ); /* Sets CS8 */ +#endif +#endif new.c_iflag |= IGNPAR ; /* Ignore framing/parity errors */ new.c_cflag &= ~(CBAUD | CRTSCTS ) ; new.c_cflag |= speed | CREAD | CLOCAL | CSTOPB ;