1 --- a/src/include/timerfd_wrap.h
2 +++ b/src/include/timerfd_wrap.h
3 @@ -55,20 +55,12 @@ SWITCH_BEGIN_EXTERN_C
7 -#if defined(__x86_64__)
8 -#define __NR_timerfd_create 283
9 -#define __NR_timerfd_settime 286
10 -#define __NR_timerfd_gettime 287
11 -#elif defined(__i386__)
12 -#define __NR_timerfd_create 322
13 -#define __NR_timerfd_settime 325
14 -#define __NR_timerfd_gettime 326
16 -#error invalid system
18 +#include <linux/unistd.h>
21 -#define TFD_TIMER_ABSTIME (1 << 0)
22 +#ifndef TFD_TIMER_ABSTIME
23 +#include <sys/timerfd.h>
26 int timerfd_create(int clockid, int flags)