fix solaris compile...

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@758 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Michael Gernoth 2004-08-25 15:42:42 +00:00
parent 0df51ec33e
commit 942ba6ccb6
2 changed files with 7 additions and 2 deletions

2
disk.c
View File

@ -31,7 +31,7 @@
#include <utime.h>
#include <time.h> /* ctime */
#if (defined(HAVE_DIRFD) || defined(HAVE_DECL_DIRFD))
#if (defined(HAVE_DIRFD) || (HAVE_DECL_DIRFD == 1))
#define DIRFD(a) (dirfd(a))
#else
#define DIRFD(a) ((a)->DIR_FD_MEMBER_NAME)

View File

@ -445,8 +445,13 @@ serial_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposi
tcsetattr(serial_fd, TCSANOW, ptermios);
*/
pser_inf->ptermios->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
pser_inf->ptermios->c_oflag &= ~OPOST;
pser_inf->ptermios->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
pser_inf->ptermios->c_cflag &= ~(CSIZE|PARENB);
pser_inf->ptermios->c_cflag |= CS8;
tcsetattr(serial_fd, TCSANOW, pser_inf->ptermios);
cfmakeraw(pser_inf->ptermios);
*handle = serial_fd;
/* all read and writes should be non blocking */