diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-06-22 14:17:42 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-06-22 14:17:42 -0700 |
commit | d35af63cd671563fd188c3b0a1ef30067027c7aa (patch) | |
tree | c9e01847ccf788e23794684da9331c3e0defd0d3 /src/msdos.c | |
parent | f143bfe38b43ad0a9d817f05c25e418982dca06f (diff) | |
download | emacs-d35af63cd671563fd188c3b0a1ef30067027c7aa.tar.gz |
Support higher-resolution time stamps.
Fixes: debbugs:9000
Diffstat (limited to 'src/msdos.c')
-rw-r--r-- | src/msdos.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/msdos.c b/src/msdos.c index c9bee400020..66911098ce0 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -4070,13 +4070,6 @@ sigprocmask (int how, const sigset_t *new_set, sigset_t *old_set) #ifndef HAVE_SELECT #include "sysselect.h" -#ifndef EMACS_TIME_ZERO_OR_NEG_P -#define EMACS_TIME_ZERO_OR_NEG_P(time) \ - ((long)(time).tv_sec < 0 \ - || ((time).tv_sec == 0 \ - && (long)(time).tv_usec <= 0)) -#endif - /* This yields the rest of the current time slice to the task manager. It should be called by any code which knows that it has nothing useful to do except idle. @@ -4145,12 +4138,12 @@ sys_select (int nfds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds, /* When seconds wrap around, we assume that no more than 1 minute passed since last `gettime'. */ - if (EMACS_TIME_NEG_P (cldiff)) + if (EMACS_TIME_SIGN (cldiff) < 0) EMACS_SET_SECS (cldiff, EMACS_SECS (cldiff) + 60); EMACS_SUB_TIME (*timeout, *timeout, cldiff); /* Stop when timeout value crosses zero. */ - if (EMACS_TIME_ZERO_OR_NEG_P (*timeout)) + if (EMACS_TIME_SIGN (*timeout) <= 0) return 0; cllast = clnow; dos_yield_time_slice (); |