]> granicus.if.org Git - check/commit
Add override for clock_gettime() in libcompat for systems that do not supply it
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 4 Nov 2012 03:18:59 +0000 (03:18 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 4 Nov 2012 03:18:59 +0000 (03:18 +0000)
commit68bf2548eb7f57972425574db7ed3382851f619c
treee20e682cceb6cd12dea58e4431c06b0e5ff8a0a1
parentf7fcda6c4cc65aede241b72bc0674dd9ea93fada
Add override for clock_gettime() in libcompat for systems that do not supply it

clock_gettime() is defined in POSIX.1-2001. However, some systems
(notably OSX) do not provide it. To allow such system to compile check,
clock_gettime() is added to libcompat. In the libcompat version, equivalent
calls for OSX are added to get time. For other systems, clock_gettime()
simply sets the time to 0.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@644 64e312b2-a51f-0410-8e61-82d0ca0eb02a
configure.ac
lib/clock_gettime.c [new file with mode: 0644]
lib/libcompat.h