packages/net/freeswitch/patches/200-src-include-timerfd_wrap_h.patch
mazilo fb2956f426 updated to FS git HEAD 5e3a6fc5e6f40be5d68c8b3cfbbfa3227fe06c2f
git-svn-id: svn://svn.openwrt.org/openwrt/packages@35036 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-07 14:25:52 +00:00

28 lines
608 B
Diff

--- a/src/include/timerfd_wrap.h
+++ b/src/include/timerfd_wrap.h
@@ -55,20 +55,12 @@ SWITCH_BEGIN_EXTERN_C
#ifndef __NR_timerfd
-#if defined(__x86_64__)
-#define __NR_timerfd_create 283
-#define __NR_timerfd_settime 286
-#define __NR_timerfd_gettime 287
-#elif defined(__i386__)
-#define __NR_timerfd_create 322
-#define __NR_timerfd_settime 325
-#define __NR_timerfd_gettime 326
-#else
-#error invalid system
-#endif
+#include <linux/unistd.h>
#endif
-#define TFD_TIMER_ABSTIME (1 << 0)
+#ifndef TFD_TIMER_ABSTIME
+#include <sys/timerfd.h>
+#endif
int timerfd_create(int clockid, int flags)
{