From 2c9791db555cc571eaedfa71444da05454bd052a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 6 Jun 2007 18:12:30 +0000 Subject: First steps towards supporting W32. This is mainly source code reorganization. Update gnulib. g10/ does currently not build. --- common/ttyio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common/ttyio.c') diff --git a/common/ttyio.c b/common/ttyio.c index 8f1e7b35c..831ad9048 100644 --- a/common/ttyio.c +++ b/common/ttyio.c @@ -168,6 +168,8 @@ init_ttyfp(void) #elif defined(__EMX__) ttyfp = stdout; /* Fixme: replace by the real functions: see wklib */ + if (my_rl_init_stream) + my_rl_init_stream (ttyfp); #else ttyfp = batchmode? stderr : fopen (tty_get_ttyname (), "r+"); if( !ttyfp ) { @@ -175,10 +177,10 @@ init_ttyfp(void) strerror(errno) ); exit(2); } -#endif - if (my_rl_init_stream) my_rl_init_stream (ttyfp); +#endif + #ifdef HAVE_TCGETATTR atexit( cleanup ); -- cgit v1.2.3