aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/input
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-02-05 15:13:27 +0100
committerHarald Welte <laforge@gnumonks.org>2011-02-05 20:26:26 +0100
commitca17ef88f57a373fef29513273e8f24c2492c969 (patch)
treea8694cb7a47b4cf6d2669adc48345128b3013a55 /openbsc/src/input
parent1dd68c3d0ffa47cf64239422b0f5bffb93d46cd1 (diff)
[DAHDI] build dahdi driver only if dahdi header is present
Diffstat (limited to 'openbsc/src/input')
-rw-r--r--openbsc/src/input/dahdi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/src/input/dahdi.c b/openbsc/src/input/dahdi.c
index 8f6bddae3..2615557b2 100644
--- a/openbsc/src/input/dahdi.c
+++ b/openbsc/src/input/dahdi.c
@@ -22,6 +22,10 @@
*
*/
+#include "../../bscconfig.h"
+
+#ifdef HAVE_DAHDI_USER_H
+
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
@@ -444,3 +448,5 @@ int e1inp_dahdi_init(void)
/* register the driver with the core */
e1inp_driver_register(&dahdi_driver);
}
+
+#endif /* HAVE_DAHDI_USER_H */