forked from Mirrors/freeswitch
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
This commit is contained in:
parent
4d20dd3e9a
commit
286362ca64
@ -190,7 +190,7 @@ AC_SUBST(DYNAMIC_LIB_EXTEN)
|
|||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
AC_HEADER_DIRENT
|
AC_HEADER_DIRENT
|
||||||
AC_HEADER_STDC
|
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
|
# for xmlrpc-c config.h
|
||||||
if test x"$ac_cv_header_wchar_h" = xyes; then
|
if test x"$ac_cv_header_wchar_h" = xyes; then
|
||||||
|
@ -60,6 +60,10 @@ typedef apr_os_thread_t switch_thread_id_t;
|
|||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_NETDB_H
|
||||||
|
#include <netdb.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
/* setuid, setgid */
|
/* setuid, setgid */
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -198,7 +198,7 @@ static void switch_core_standard_on_hibernate(switch_core_session_t *session)
|
|||||||
//static switch_hash_t *stack_table = NULL;
|
//static switch_hash_t *stack_table = NULL;
|
||||||
static Hash stack_table;
|
static Hash stack_table;
|
||||||
|
|
||||||
#if defined (__GNUC__) && defined (LINUX)
|
#if defined (__GNUC__) && defined (LINUX) && defined (HAVE_EXECINFO_H)
|
||||||
#include <execinfo.h>
|
#include <execinfo.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user