]> Savannah Git Hosting - gnulib.git/commit
timevar: rely on gnulib modules for time portability.
authorAkim Demaille <akim.demaille@gmail.com>
Tue, 2 Oct 2018 04:19:19 +0000 (06:19 +0200)
committerAkim Demaille <akim.demaille@gmail.com>
Fri, 5 Oct 2018 04:13:54 +0000 (06:13 +0200)
commit5fc612b722cd22c7f84a7d9aac9bb01035a869be
tree1f4ab77364c1b4c1813f13ae76aa19b8f9f2ac7d
parent1ffc70c32c4f94d732d7a5cba4454eb6b65bbe5d
timevar: rely on gnulib modules for time portability.

* modules/timevar (Depends-on): Add sys_time, sys_times, and times.
* m4/timevar.m4: Don't check for clock_t and struct tms,
guaranteed by gnulib.
* lib/timevar.h: Use extern "C" protection.
Include <stdio.h> for FILE.
* lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
they are guaranteed by gnulib.
Remove uses of clock as (now useless) fallback.
ChangeLog
lib/timevar.c
lib/timevar.h
m4/timevar.m4
modules/timevar