aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2019-02-23 13:47:52 -0800
committerPaul Eggert2019-02-23 14:12:49 -0800
commit975893b229072aa1b5565cc1a73987fa83ed5b21 (patch)
tree2e87a83eb3836afc2507c4126dfb328b3f1049e0 /src/alloc.c
parente96923c188a2a38d09917c5b7f606187a1413a96 (diff)
downloademacs-975893b229072aa1b5565cc1a73987fa83ed5b21.tar.gz
emacs-975893b229072aa1b5565cc1a73987fa83ed5b21.zip
Don’t assume timersub and gettimeofday
POSIX does not specify timersub, and marks gettimeofday as obsolescent. Avoid porting problems by using timespec.h functions instead. * src/editfns.c: Include systime.h instead of sys/time.h. (EXTRA_CONTEXT_FIELDS): Replace start and max_secs with time_limit. All uses changed. This removes the need to call gettimeofday or timersub. * src/term.c (timeval_to_Time): Remove. Replace all uses with ... (current_Time): ... this new function, removing the need to call gettimeofday.
Diffstat (limited to 'src/alloc.c')
0 files changed, 0 insertions, 0 deletions