forked from Mirrors/freeswitch
last commit for --enable-timerfd-wrapper (autoheadache)
This commit is contained in:
parent
ffeb7ba740
commit
25c725c292
|
@ -390,8 +390,9 @@ if test "$ac_cv_found_odbc" = "yes" ; then
|
||||||
enable_core_odbc_support="yes"
|
enable_core_odbc_support="yes"
|
||||||
fi
|
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"])
|
AM_CONDITIONAL([ENABLE_TIMERFD_WRAPPER],[test "x$enable_timer_fd_wrapper" != "xno"])
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -34,14 +34,17 @@
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "private/switch_core_pvt.h"
|
#include "private/switch_core_pvt.h"
|
||||||
#ifdef HAVE_TIMERFD_CREATE
|
|
||||||
#include <sys/timerfd.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef TIMERFD_WRAP
|
#ifdef TIMERFD_WRAP
|
||||||
#include <timerfd_wrap.h>
|
#include <timerfd_wrap.h>
|
||||||
|
#ifndef HAVE_TIMERFD_CREATE
|
||||||
#define HAVE_TIMERFD_CREATE
|
#define HAVE_TIMERFD_CREATE
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#ifdef HAVE_TIMERFD_CREATE
|
||||||
|
#include <sys/timerfd.h>
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
//#if defined(DARWIN)
|
//#if defined(DARWIN)
|
||||||
#define DISABLE_1MS_COND
|
#define DISABLE_1MS_COND
|
||||||
|
|
Loading…
Reference in New Issue