… | |
… | |
229 | return 0; |
229 | return 0; |
230 | } |
230 | } |
231 | ]])],ac_cv_eventfd=yes,ac_cv_eventfd=no)]) |
231 | ]])],ac_cv_eventfd=yes,ac_cv_eventfd=no)]) |
232 | test $ac_cv_eventfd = yes && AC_DEFINE(HAVE_EVENTFD, 1, eventfd(2) is available) |
232 | test $ac_cv_eventfd = yes && AC_DEFINE(HAVE_EVENTFD, 1, eventfd(2) is available) |
233 | |
233 | |
|
|
234 | AC_CACHE_CHECK(for timerfd, ac_cv_timerfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
|
|
235 | #include <sys/timerfd.h> |
|
|
236 | int res; |
|
|
237 | int main (void) |
|
|
238 | { |
|
|
239 | struct itimerspec its; |
|
|
240 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
|
|
241 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
|
|
242 | res = timerfd_gettime (res, &its); |
|
|
243 | return 0; |
|
|
244 | } |
|
|
245 | ]])],ac_cv_timerfd=yes,ac_cv_timerfd=no)]) |
|
|
246 | test $ac_cv_timerfd = yes && AC_DEFINE(HAVE_TIMERFD, 1, timerfd_*(2) are available) |
|
|
247 | |
234 | AC_CACHE_CHECK(for renameat2, ac_cv_renameat2, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
248 | AC_CACHE_CHECK(for renameat2, ac_cv_renameat2, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
235 | #include <unistd.h> |
249 | #include <unistd.h> |
236 | #include <sys/syscall.h> |
250 | #include <sys/syscall.h> |
237 | #include <linux/fs.h> |
251 | #include <linux/fs.h> |
238 | int res; |
252 | int res; |