commit | c7841cc8a1c78cab7ac3c733d6fadcdeb27338ec | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Sat Feb 05 15:13:27 2011 +0100 |
committer | Harald Welte <laforge@gnumonks.org> | Sat Feb 05 20:26:26 2011 +0100 |
tree | a8694cb7a47b4cf6d2669adc48345128b3013a55 | |
parent | 890fe4a5ba8b570a6d228ac398cd37234449157b [diff] [blame] |
[DAHDI] build dahdi driver only if dahdi header is present
diff --git a/openbsc/src/input/dahdi.c b/openbsc/src/input/dahdi.c index 8f6bdda..2615557 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 @@ /* register the driver with the core */ e1inp_driver_register(&dahdi_driver); } + +#endif /* HAVE_DAHDI_USER_H */