I am using timerfd mechanism, and getting this error on compilation: error:TFD_NONBLOCK’ undeclared (first use in this function)`
How to resolve?
Here is the statement:
timer_fd = timerfd_create(CLOCK_REALTIME, TFD_NONBLOCK);
Looks like timerfd support is missing from libc. sys/timerfd.h is absent. Any workarounds for this?
To use
timerfd_create(), you need to run Linux 2.6.25 (or higher) with glibc 2.8 (or higher).