summaryrefslogtreecommitdiff
path: root/drivers/dahdi/Kbuild
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dahdi/Kbuild')
-rw-r--r--drivers/dahdi/Kbuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dahdi/Kbuild b/drivers/dahdi/Kbuild
index c5742b9..6e3f7a1 100644
--- a/drivers/dahdi/Kbuild
+++ b/drivers/dahdi/Kbuild
@@ -56,6 +56,10 @@ ifneq (,$(filter $(KVERS),$(BAD_KERNELS)))
EXTRA_CFLAGS+=-Drw_lock_t=rwlock_t
endif
+ifeq (1,$(shell fgrep -q ' hrtimer_set_expires' include/linux/hrtimer.h 2>/dev/null && echo 1))
+EXTRA_CFLAGS+=-DHAVE_HRTIMER_ACCESSORS=1
+endif
+
dahdi-objs := dahdi-base.o
dahdi_echocan_hpec-objs := hpec/dahdi_echocan_hpec.o