diff --git a/missing.h b/missing.h index 45dcb2d..7f0af10 100644 --- a/missing.h +++ b/missing.h @@ -49,4 +49,20 @@ static inline int clock_adjtime(clockid_t id, struct timex *tx) return syscall(__NR_clock_adjtime, id, tx); } +#ifdef __uClinux__ + +static inline int timerfd_create(int clockid, int flags) +{ + return syscall(__NR_timerfd_create, clockid, flags); +} + +static inline int timerfd_settime(int fd, int flags, + const struct itimerspec *new_value, + struct itimerspec *old_value) +{ + return syscall(__NR_timerfd_settime, fd, flags, new_value, old_value); +} + +#endif + #endif diff --git a/port.c b/port.c index a3195ff..672cb0d 100644 --- a/port.c +++ b/port.c @@ -26,6 +26,7 @@ #include "bmc.h" #include "clock.h" +#include "missing.h" #include "msg.h" #include "port.h" #include "print.h"