From 286362ca64eb9e21b692094fa960e7bc968e86f9 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 3 Jul 2008 17:08:46 +0000 Subject: [PATCH] let configure figure out if we have the header files git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8889 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- configure.in | 2 +- src/include/private/switch_core_pvt.h | 4 ++++ src/switch_core_state_machine.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 4cd0cf0a7e..c27f9b4e5d 100644 --- a/configure.in +++ b/configure.in @@ -190,7 +190,7 @@ AC_SUBST(DYNAMIC_LIB_EXTEN) # Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC -AC_CHECK_HEADERS([sys/types.h sys/resource.h sched.h wchar.h sys/filio.h sys/ioctl.h]) +AC_CHECK_HEADERS([sys/types.h sys/resource.h sched.h wchar.h sys/filio.h sys/ioctl.h netdb.h execinfo.h]) # for xmlrpc-c config.h if test x"$ac_cv_header_wchar_h" = xyes; then diff --git a/src/include/private/switch_core_pvt.h b/src/include/private/switch_core_pvt.h index 7ab813a1a0..c55ff05951 100644 --- a/src/include/private/switch_core_pvt.h +++ b/src/include/private/switch_core_pvt.h @@ -60,6 +60,10 @@ typedef apr_os_thread_t switch_thread_id_t; #include #endif +#ifdef HAVE_NETDB_H +#include +#endif + #ifndef WIN32 /* setuid, setgid */ #include diff --git a/src/switch_core_state_machine.c b/src/switch_core_state_machine.c index 4e195dc829..c7d6089ecf 100644 --- a/src/switch_core_state_machine.c +++ b/src/switch_core_state_machine.c @@ -198,7 +198,7 @@ static void switch_core_standard_on_hibernate(switch_core_session_t *session) //static switch_hash_t *stack_table = NULL; static Hash stack_table; -#if defined (__GNUC__) && defined (LINUX) +#if defined (__GNUC__) && defined (LINUX) && defined (HAVE_EXECINFO_H) #include #include #include