asterisk11-gui: remove postinst
[feed/telephony.git] / net / freeswitch / patches / 200-src-include-timerfd_wrap_h.patch
1 --- a/src/include/timerfd_wrap.h
2 +++ b/src/include/timerfd_wrap.h
3 @@ -55,20 +55,12 @@ SWITCH_BEGIN_EXTERN_C
4
5
6 #ifndef __NR_timerfd
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
15 -#else
16 -#error invalid system
17 -#endif
18 +#include <linux/unistd.h>
19 #endif
20
21 -#define TFD_TIMER_ABSTIME (1 << 0)
22 +#ifndef TFD_TIMER_ABSTIME
23 +#include <sys/timerfd.h>
24 +#endif
25
26 int timerfd_create(int clockid, int flags)
27 {