summaryrefslogtreecommitdiff
path: root/dahdi_monitor.c
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2009-09-15 19:55:29 +0000
committerSean Bright <sean@malleable.com>2009-09-15 19:55:29 +0000
commit670e01a3f9558e7d2ee77e020ac174d6cd146e9b (patch)
tree0e59cdee38cd1fd35f005ed15eed82353cbed95c /dahdi_monitor.c
parente26ea2f072a3702efcd1a3ee93ed58ab049977d5 (diff)
Use configure to determine the location of header files instead of relying on
the platform. Still need to copy bootstrap.sh from asterisk and tonezone.c still needs to be updated appropriately. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7137 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'dahdi_monitor.c')
-rw-r--r--dahdi_monitor.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/dahdi_monitor.c b/dahdi_monitor.c
index 98a2f72..e61b610 100644
--- a/dahdi_monitor.c
+++ b/dahdi_monitor.c
@@ -41,11 +41,16 @@
#include <dahdi/user.h>
#include "dahdi_tools_version.h"
#include "wavformat.h"
+#include "autoconfig.h"
-#if defined(__FreeBSD__)
-#include <sys/soundcard.h>
+#ifdef HAVE_SYS_SOUNDCARD_H
+# include <sys/soundcard.h>
#else
-#include <linux/soundcard.h>
+# ifdef HAVE_LINUX_SOUNDCARD_H
+# include <linux/soundcard.h>
+# else
+# error "Your installation appears to be missing soundcard.h which is needed to continue."
+# endif
#endif
/*