From 063dc3ff4fdf54f8e673eb552a6e2d56b081b5d7 Mon Sep 17 00:00:00 2001 From: Sven Panne Date: Thu, 14 Jul 2005 12:54:24 +0000 Subject: [PATCH] Nuked useless bit-fiddling, pointed out by John. I was a bit too quick to cut-n-paste the cfmakeraw() definition into our code... :-] git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@680 7f0cb862-5218-0410-a997-914c9d46530a --- src/freeglut_input_devices.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/freeglut_input_devices.c b/src/freeglut_input_devices.c index d1a35ed..493bcd8 100755 --- a/src/freeglut_input_devices.c +++ b/src/freeglut_input_devices.c @@ -271,14 +271,6 @@ static SERIALPORT *serial_open ( const char *device ) tcgetattr(fd,&port->termio_save); memset(&termio, 0, sizeof(termio)); - - /* Same as "cfmakeraw(&termio)", but Solaris doesn't have this call */ - termio.c_iflag &= ~( IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON ); - termio.c_oflag &= ~OPOST; - termio.c_lflag &= ~( ECHO | ECHONL | ICANON | ISIG | IEXTEN ); - termio.c_cflag &= ~( CSIZE | PARENB ); - termio.c_cflag |= CS8; - termio.c_cflag = CS8 | CREAD | HUPCL ; termio.c_iflag = IGNPAR | IGNBRK ; termio.c_cc[VTIME] = 0; /* inter-character timer */ -- 1.7.10.4