define TIOCOUTQ to FIONWRITE if it's not already defined
remove XCASE from temios c_lflag because it's deprecated git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@808 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
4fa5233b39
commit
3b43325dc8
5
serial.c
5
serial.c
@ -124,6 +124,9 @@
|
|||||||
#ifndef TIOCINQ
|
#ifndef TIOCINQ
|
||||||
#define TIOCINQ FIONREAD
|
#define TIOCINQ FIONREAD
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef TIOCOUTQ
|
||||||
|
#define TIOCOUTQ FIONWRITE
|
||||||
|
#endif
|
||||||
|
|
||||||
extern RDPDR_DEVICE g_rdpdr_device[];
|
extern RDPDR_DEVICE g_rdpdr_device[];
|
||||||
|
|
||||||
@ -565,7 +568,7 @@ serial_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposi
|
|||||||
pser_inf->ptermios->c_iflag &=
|
pser_inf->ptermios->c_iflag &=
|
||||||
~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);
|
~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);
|
||||||
pser_inf->ptermios->c_oflag &= ~OPOST;
|
pser_inf->ptermios->c_oflag &= ~OPOST;
|
||||||
pser_inf->ptermios->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN | XCASE);
|
pser_inf->ptermios->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
|
||||||
pser_inf->ptermios->c_cflag &= ~(CSIZE | PARENB);
|
pser_inf->ptermios->c_cflag &= ~(CSIZE | PARENB);
|
||||||
pser_inf->ptermios->c_cflag |= CS8;
|
pser_inf->ptermios->c_cflag |= CS8;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user