update for Solaris - use ifdef around cfmakeraw, include config.h

This commit is contained in:
cjdebenh
2001-05-15 03:59:01 +00:00
parent a65dd59c94
commit 211a3a4b04
+7
View File
@@ -13,6 +13,9 @@
#include <stdarg.h>
#include <sys/poll.h>
#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 ;