enable_core_odbc_support="yes"
fi
-AC_ARG_ENABLE(enable-timerfd-wrapper,
- [AS_HELP_STRING([--enable-timerfd-wrapper], [timerfd is in the kernel but not in your libc])],,[enable_timer_fd_wrapper="no"])
+
+AC_ARG_ENABLE(timerfd-wrapper,
+[AC_HELP_STRING([--enable-timerfd-wrapper],[timerfd is in the kernel but not in your libc])],[enable_timer_fd_wrapper="$enableval"],[enable_timer_fd_wrapper="no"])
AM_CONDITIONAL([ENABLE_TIMERFD_WRAPPER],[test "x$enable_timer_fd_wrapper" != "xno"])
#include <switch.h>
#include <stdio.h>
#include "private/switch_core_pvt.h"
-#ifdef HAVE_TIMERFD_CREATE
-#include <sys/timerfd.h>
-#endif
#ifdef TIMERFD_WRAP
#include <timerfd_wrap.h>
+#ifndef HAVE_TIMERFD_CREATE
#define HAVE_TIMERFD_CREATE
#endif
+#else
+#ifdef HAVE_TIMERFD_CREATE
+#include <sys/timerfd.h>
+#endif
+#endif
//#if defined(DARWIN)
#define DISABLE_1MS_COND