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: https://svn.code.sf.net/p/freeglut/code/trunk@680 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2005-07-14 12:54:24 +00:00
parent 7c0201f17b
commit 485ee9acb8

View File

@ -271,14 +271,6 @@ static SERIALPORT *serial_open ( const char *device )
tcgetattr(fd,&port->termio_save); tcgetattr(fd,&port->termio_save);
memset(&termio, 0, sizeof(termio)); 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_cflag = CS8 | CREAD | HUPCL ;
termio.c_iflag = IGNPAR | IGNBRK ; termio.c_iflag = IGNPAR | IGNBRK ;
termio.c_cc[VTIME] = 0; /* inter-character timer */ termio.c_cc[VTIME] = 0; /* inter-character timer */