]> granicus.if.org Git - check/commit
librt_timers.m4: check if timer_create() is usable
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 18 Dec 2013 23:03:06 +0000 (23:03 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 18 Dec 2013 23:03:06 +0000 (23:03 +0000)
commit7b340082c43c698b22cfe6b17c6692a600a5cd1a
treeae5ae627d69f5aa5c3f7b37b0b66de4259cd1652
parent225afe50cc02a42cd281a90a01fb504804a260c1
librt_timers.m4: check if timer_create() is usable

Adds a custom check for the timer_create() function on the target
system.

It was found that on OpenBSD, the timer_create(), timer_settime(),
and timer_delete() functions were only stubbed out. They set
errno to ENOSYS and return -1. To detect this and replace the timer_*
functions with libcompat's, this m4 file will execute a test
program on the system, checking for the ENOSYS errno.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@903 64e312b2-a51f-0410-8e61-82d0ca0eb02a
m4/librt_timers.m4 [new file with mode: 0644]