]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
let configure figure out if we have the header files
authorMichael Jerris <mike@jerris.com>
Thu, 3 Jul 2008 17:08:46 +0000 (17:08 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 3 Jul 2008 17:08:46 +0000 (17:08 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8889 d0543943-73ff-0310-b7d9-9358b9ac24b2

configure.in
src/include/private/switch_core_pvt.h
src/switch_core_state_machine.c

index 4cd0cf0a7eeefe49f14c386688c5837965755a13..c27f9b4e5d7874924ee72a1316decf98265d98db 100644 (file)
@@ -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
index 7ab813a1a0b221893cc2302c919bf32bac589b50..c55ff059511735225997e83ab82f665990b767b0 100644 (file)
@@ -60,6 +60,10 @@ typedef apr_os_thread_t switch_thread_id_t;
 #include <sys/mman.h>
 #endif
 
+#ifdef HAVE_NETDB_H
+#include <netdb.h>
+#endif
+
 #ifndef WIN32
 /* setuid, setgid */
 #include <unistd.h>
index 4e195dc829b2e26f22d8ecd08845d2921f567bd0..c7d6089ecf2d5175d31708af09cf31193eea7078 100644 (file)
@@ -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 <execinfo.h>
 #include <stdio.h>
 #include <stdlib.h>