[Mplayer-cvslog] CVS: main/linux getch2.c,1.2,1.3
GEREOFFY
arpi_esp at users.sourceforge.net
Tue Jun 5 20:40:46 CEST 2001
- Previous message: [Mplayer-cvslog] CVS: main/libvo Makefile,1.8,1.9 vo_sdl.c,1.39,1.40 x11_common.c,1.20,1.21
- Next message: [Mplayer-cvslog] CVS: main/loader stubs.s,1.2,1.3 win32.c,1.12,1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/linux
In directory usw-pr-cvs1:/tmp/cvs-serv7869/linux
Modified Files:
getch2.c
Log Message:
applied solaris8/netbsd/other fixes patch by Jürgen Keil <jk at tools.de>
Index: getch2.c
===================================================================
RCS file: /cvsroot/mplayer/main/linux/getch2.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** getch2.c 2001/06/03 00:31:41 1.2
--- getch2.c 2001/06/05 18:40:44 1.3
***************
*** 202,209 ****
void getch2_enable(){
struct termios tio_new;
! #ifdef __FreeBSD__
! ioctl(0,TIOCGETA,&tio_orig); /* tcgetattr(0,&tio_orig); */
#else
! ioctl(0,TCGETS,&tio_orig); /* tcgetattr(0,&tio_orig); */
#endif
tio_new=tio_orig;
--- 202,211 ----
void getch2_enable(){
struct termios tio_new;
! #if defined(__NetBSD__) || defined(__svr4__)
! tcgetattr(0,&tio_orig);
! #elif defined(__FreeBSD__)
! ioctl(0,TIOCGETA,&tio_orig);
#else
! ioctl(0,TCGETS,&tio_orig);
#endif
tio_new=tio_orig;
***************
*** 211,226 ****
tio_new.c_cc[VMIN] = 1;
tio_new.c_cc[VTIME] = 0;
! #ifdef __FreeBSD__
! ioctl(0,TIOCSETA,&tio_new); /* tcsetattr(0,TCSANOW,&tio_new); */
#else
! ioctl(0,TCSETS,&tio_new); /* tcsetattr(0,TCSANOW,&tio_new); */
#endif
}
void getch2_disable(){
! #ifdef __FreeBSD__
! ioctl(0,TIOCSETA,&tio_orig); /* tcsetattr(0,TCSANOW,&tio_orig); */
#else
! ioctl(0,TCSETS,&tio_orig); /* tcsetattr(0,TCSANOW,&tio_orig); */
#endif
}
--- 213,232 ----
tio_new.c_cc[VMIN] = 1;
tio_new.c_cc[VTIME] = 0;
! #if defined(__NetBSD__) || defined(__svr4__)
! tcsetattr(0,TCSANOW,&tio_new);
! #elif defined(__FreeBSD__)
! ioctl(0,TIOCSETA,&tio_new);
#else
! ioctl(0,TCSETS,&tio_new);
#endif
}
void getch2_disable(){
! #if defined(__NetBSD__) || defined(__svr4__)
! tcsetattr(0,TCSANOW,&tio_orig);
! #elif defined(__FreeBSD__)
! ioctl(0,TIOCSETA,&tio_orig);
#else
! ioctl(0,TCSETS,&tio_orig);
#endif
}
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
- Previous message: [Mplayer-cvslog] CVS: main/libvo Makefile,1.8,1.9 vo_sdl.c,1.39,1.40 x11_common.c,1.20,1.21
- Next message: [Mplayer-cvslog] CVS: main/loader stubs.s,1.2,1.3 win32.c,1.12,1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list