summaryrefslogtreecommitdiffstats
path: root/src/input/dahdi.c
diff options
context:
space:
mode:
authorHarald Welte2011-08-24 08:32:38 +0200
committerHarald Welte2011-08-24 08:32:38 +0200
commit3bc78855390d1fde57615572a7ca05c7dcb5e226 (patch)
tree56bba99d5e2f6f9aca6d48eaa76cce5c7da1a245 /src/input/dahdi.c
parentmISDN: optionally bypass kernel LAPD code and use userspace LAPD (diff)
downloadlibosmo-abis-3bc78855390d1fde57615572a7ca05c7dcb5e226.tar.gz
libosmo-abis-3bc78855390d1fde57615572a7ca05c7dcb5e226.tar.xz
libosmo-abis-3bc78855390d1fde57615572a7ca05c7dcb5e226.zip
re-introduce optional build of DAHDI input plugin
We should only build it when the dahdi/user.h file is actually present.
Diffstat (limited to 'src/input/dahdi.c')
-rw-r--r--src/input/dahdi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input/dahdi.c b/src/input/dahdi.c
index 4fd4e61..a4dbd03 100644
--- a/src/input/dahdi.c
+++ b/src/input/dahdi.c
@@ -22,6 +22,10 @@
*
*/
+#include "../../config.h"
+
+#ifdef HAVE_DAHDI_USER_H
+
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
@@ -461,3 +465,5 @@ int e1inp_dahdi_init(void)
/* register the driver with the core */
return e1inp_driver_register(&dahdi_driver);
}
+
+#endif /* HAVE_DAHDI_USER_H */