Make sure to only include dahdi/user.h if we have

installed DAHDI. 



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@125852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Mark Michelson 18 years ago
parent 489a80e711
commit 307dc9d032

@ -53,7 +53,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <sys/stat.h>
#include <regex.h>
#include <sys/ioctl.h>
#if defined(HAVE_DAHDI)
#include <dahdi/user.h>
#endif
#include "asterisk/paths.h" /* need ast_config_AST_DATA_DIR for firmware */

@ -87,7 +87,9 @@ int daemon(int, int); /* defined in libresolv of all places */
#endif
#include <sys/ioctl.h>
#if defined(HAVE_DAHDI)
#include <dahdi/user.h>
#endif
#ifdef linux
#include <sys/prctl.h>

@ -33,7 +33,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <signal.h>
#include <math.h>
#include <sys/ioctl.h>
#if defined(HAVE_DAHDI)
#include <dahdi/user.h>
#endif
#include "asterisk/paths.h" /* use ast_config_AST_SYSTEM_NAME */

Loading…
Cancel
Save