summaryrefslogtreecommitdiff
path: root/parens.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-11-23 19:24:14 -0500
committerChet Ramey <chet.ramey@case.edu>2011-11-23 19:24:14 -0500
commit86cfd01f1d547422a1fb0365719491a355847dc0 (patch)
tree131fc20f78755a99c8d5db62c39609d0c4cafe0f /parens.c
parentff2d9ff725d1d8591f3534ed2a992b550b56a832 (diff)
downloadreadline-86cfd01f1d547422a1fb0365719491a355847dc0.tar.gz
Readline-6.1 import
Diffstat (limited to 'parens.c')
-rw-r--r--parens.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/parens.c b/parens.c
index f15d26f..9c98488 100644
--- a/parens.c
+++ b/parens.c
@@ -38,16 +38,7 @@
# include <unistd.h>
#endif
-#if defined (FD_SET) && !defined (HAVE_SELECT)
-# define HAVE_SELECT
-#endif
-
-#if defined (HAVE_SELECT)
-# include <sys/time.h>
-#endif /* HAVE_SELECT */
-#if defined (HAVE_SYS_SELECT_H)
-# include <sys/select.h>
-#endif
+#include "posixselect.h"
#if defined (HAVE_STRING_H)
# include <string.h>
@@ -130,8 +121,7 @@ rl_insert_close (count, invoking_key)
FD_ZERO (&readfds);
FD_SET (fileno (rl_instream), &readfds);
- timer.tv_sec = 0;
- timer.tv_usec = _paren_blink_usec;
+ USEC_TO_TIMEVAL (_paren_blink_usec, timer);
orig_point = rl_point;
rl_point = match_point;