From 606291beabab14c85a141c7a4225fbcab8d19fbd Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 23 Sep 2009 23:15:43 +0200 Subject: *: more portability fixes by Dan Fandrich Signed-off-by: Denys Vlasenko --- editors/vi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editors') diff --git a/editors/vi.c b/editors/vi.c index 31a1edc9f..4decbea17 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -2187,11 +2187,11 @@ static void catch_sig(int sig) } #endif /* FEATURE_VI_USE_SIGNALS */ -static int mysleep(int hund) // sleep for 'h' 1/100 seconds +static int mysleep(int hund) // sleep for 'hund' 1/100 seconds or stdin ready { struct pollfd pfd[1]; - pfd[0].fd = 0; + pfd[0].fd = STDIN_FILENO; pfd[0].events = POLLIN; return safe_poll(pfd, 1, hund*10) > 0; } -- cgit v1.2.3