[AC_CACHE_CHECK([for a working timer_create(CLOCK_REALTIME)],
[rb__cv_timer_create_works],
[AC_TRY_RUN([
-#ifdef HAVE_TIME_H
#include <time.h>
-#endif
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
int main(int argc, char *argv[])
{
#if HAVE_TIMER_CREATE
[AC_CACHE_CHECK([for a working timerfd_create(CLOCK_REALTIME)],
[rb__cv_timerfd_create_works],
[AC_TRY_RUN([
-#ifdef HAVE_TIME_H
#include <time.h>
-#endif
-#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#endif
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
#ifdef HAVE_SYS_TIMERFD_H
#include <sys/timerfd.h>
#endif