mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
* lib/timespec-sub.c: Copy manually from Gnulib.
This commit is contained in:
parent
a29a385ee5
commit
831539542f
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ struct timespec
|
||||||
timespec_sub (struct timespec a, struct timespec b)
|
timespec_sub (struct timespec a, struct timespec b)
|
||||||
{
|
{
|
||||||
int nsdiff = a.tv_nsec - b.tv_nsec;
|
int nsdiff = a.tv_nsec - b.tv_nsec;
|
||||||
bool borrow = nsdiff < 0;
|
int borrow = nsdiff < 0;
|
||||||
time_t rs;
|
time_t rs;
|
||||||
int rns;
|
int rns;
|
||||||
bool v = ckd_sub (&rs, a.tv_sec, b.tv_sec);
|
bool v = ckd_sub (&rs, a.tv_sec, b.tv_sec);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue