git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8889
d0543943-73ff-0310-b7d9-
9358b9ac24b2
# 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
#include <sys/mman.h>
#endif
+#ifdef HAVE_NETDB_H
+#include <netdb.h>
+#endif
+
#ifndef WIN32
/* setuid, setgid */
#include <unistd.h>
//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>