]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
last commit for --enable-timerfd-wrapper (autoheadache)
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 30 Jun 2011 23:30:24 +0000 (18:30 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 30 Jun 2011 23:30:24 +0000 (18:30 -0500)
configure.in
src/switch_time.c

index 57910ed3a786957818b19a559e308860f7ab0490..43839a3f8b01c093ac1cd2928cae79976b5f52bd 100644 (file)
@@ -390,8 +390,9 @@ if test "$ac_cv_found_odbc" = "yes" ; then
   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"])
 
 
index 47fd09b8b94386a5ef38424b2bca6fbc53c63477..bcee99c24737b24b387ae3bc1ba1cfb683428bf3 100644 (file)
 #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