diff options
author | David Goulet <dgoulet@ev0ke.net> | 2012-07-31 23:27:34 -0400 |
---|---|---|
committer | David Goulet <dgoulet@ev0ke.net> | 2012-07-31 23:27:34 -0400 |
commit | 0809df1a75dbbe34b97c5e1105e63b83aa5d7173 (patch) | |
tree | 6f43aa3a38f0072da739d1df2840d4059503ef93 /.gitignore | |
parent | 188ad9cb70c92a1e97a46a879cf49003ad249385 (diff) | |
download | tlsdate-0809df1a75dbbe34b97c5e1105e63b83aa5d7173.tar.gz |
Add libcompat integrating clocks
First, this patch changes gettimeofday and settimeofday function call by
clock_gettime and clock_settime using the CLOCK_REALTIME id. The reason
for that is for POSIX compliance and portability.
Thinking ahead for a possible Windows port, this patch also introduce a
basic compatibility layer where generic function can be used which
points to the right OS code. A libcompat is available which for now only
provide an interface for clocks.
Refer to src/compat/clock.h for the possible calls and options. The
tlsdate-helper was refactored to use this libcompat and new clock calls.
Also silent compilation output so warnings and errors can easily be seen
during compile time.
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1,4 +1,5 @@ .deps/ +.libs/ autom4te.cache/ Makefile Makefile.in @@ -10,6 +11,7 @@ config.sub configure depcomp install-sh +libtool missing stamp-h1 config/ |