From 8bd28c459f61fcf4362e27a3c09ee5e8c8e4e7d3 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Wed, 29 Jun 2011 18:36:26 +0000 Subject: dahdi: Fix compilation on Linux 2.6.26 w/CONFIG_DAHDI_NET. The hdlc_stats function was removed from the mainline kernel in commit 198191c4a7ce4daba379608fb38b9bc5a4eedc61 [1] which was first released in linux 2.6.27. [1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=198191c4a7ce4 (closes issue #19354) Reported by: biohumanoid Signed-off-by: Shaun Ruffell Acked-by: Tzafrir Cohen Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9934 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.4@10004 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi-base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index cc04a60..cd63558 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -1670,7 +1670,7 @@ static inline void print_debug_writebuf(struct dahdi_chan* ss, struct sk_buff *s #endif #ifdef CONFIG_DAHDI_NET -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26) +#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 26) static inline struct net_device_stats *hdlc_stats(struct net_device *dev) { return &dev->stats; -- cgit v1.2.3