diff -Ncwr epicon-3.9.orig/Makefile epicon-3.9/Makefile *** epicon-3.9.orig/Makefile Thu Aug 17 20:13:42 2006 --- epicon-3.9/Makefile Sat Jan 12 09:54:22 2008 *************** *** 65,71 **** exit ; \ fi @echo Copying epicon to $(BINDIR)... ! @chgrp uucp epicon #add 2005.12.23 @cp epicon $(BINDIR)/epicon @chmod 755 $(BINDIR)/epicon @chmod +s $(BINDIR)/epicon --- 65,71 ---- exit ; \ fi @echo Copying epicon to $(BINDIR)... ! @chgrp dialer epicon #add 2005.12.23 @cp epicon $(BINDIR)/epicon @chmod 755 $(BINDIR)/epicon @chmod +s $(BINDIR)/epicon diff -Ncwr epicon-3.9.orig/epicon.h epicon-3.9/epicon.h *** epicon-3.9.orig/epicon.h Thu Aug 17 20:13:46 2006 --- epicon-3.9/epicon.h Sat Jan 12 09:53:16 2008 *************** *** 24,32 **** #include #include #include ! #include #include ! #include #include #include #include --- 24,32 ---- #include #include #include ! #include #include ! #include #include #include #include *************** *** 51,57 **** /* Ver 3.8:2005.12.17 */ /* Ver 3.9:2006.8.17 */ ! #define COMPORT "/dev/ttyS0" /* the default com_port */ #define ESC '~' /* default esc char */ #define EOT '\004' /* ^D */ #define SEL_TIME_OUT 20*1000 /* select time out micro second */ --- 51,57 ---- /* Ver 3.8:2005.12.17 */ /* Ver 3.9:2006.8.17 */ ! #define COMPORT "/dev/tty00" /* the default com_port */ #define ESC '~' /* default esc char */ #define EOT '\004' /* ^D */ #define SEL_TIME_OUT 20*1000 /* select time out micro second */ diff -Ncwr epicon-3.9.orig/epicon_uty.c epicon-3.9/epicon_uty.c *** epicon-3.9.orig/epicon_uty.c Thu Aug 17 20:13:46 2006 --- epicon-3.9/epicon_uty.c Sat Jan 12 09:53:16 2008 *************** *** 26,31 **** --- 26,33 ---- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "epicon.h" + #define HAVE_TERMIOS + #define CBAUD 0x00000000 extern char esc[]; /* escape charctor */ extern int ck_pid; /* check to process id */ extern int com_port_fd; /* com_port file descriptor */ *************** *** 781,792 **** #endif com_port_set.c_cflag &= ~(CBAUD|PARENB); /* com_port_set.c_iflag |= IXOFF; */ /* X/Y modem will clear this */ ! com_port_set.c_cflag |= CLOCAL|(speed); com_port_set.c_cc[VMIN] = 0; com_port_set.c_cc[VTIME] = 1; #ifndef HAVE_TERMIOS ioctl(com_port_fd, TCSETA, &com_port_set); #else tcsetattr(com_port_fd, TCSANOW, &com_port_set); #endif } --- 783,796 ---- #endif com_port_set.c_cflag &= ~(CBAUD|PARENB); /* com_port_set.c_iflag |= IXOFF; */ /* X/Y modem will clear this */ ! com_port_set.c_cflag |= CLOCAL; com_port_set.c_cc[VMIN] = 0; com_port_set.c_cc[VTIME] = 1; #ifndef HAVE_TERMIOS ioctl(com_port_fd, TCSETA, &com_port_set); #else + cfsetispeed(&com_port_set, speed); + cfsetospeed(&com_port_set, speed); tcsetattr(com_port_fd, TCSANOW, &com_port_set); #endif }