From 6b3c3dd9d8b272e86dbb059a97d41fab3cc4264d Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 27 Apr 2005 20:35:05 +0000 Subject: HDLC compilation fixes. Tested to compile correctly for all HDLC changes between 2.4.20 and 2.4.30 git-svn-id: http://svn.digium.com/svn/zaptel/trunk@632 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- zaptel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'zaptel.c') diff --git a/zaptel.c b/zaptel.c index 1bb0e32..fae7891 100755 --- a/zaptel.c +++ b/zaptel.c @@ -1268,7 +1268,9 @@ static void zt_net_close(hdlc_device *hdlc) #ifdef LINUX26 hdlc_close(dev); #else +#ifndef CONFIG_OLD_HDLC_API hdlc_close(hdlc); +#endif #endif #ifndef LINUX26 MOD_DEC_USE_COUNT; @@ -3187,7 +3189,7 @@ static int zt_ctl_ioctl(struct inode *inode, struct file *file, unsigned int cmd chans[ch.chan]->hdlcnetdev->netdev.close = zt_net_close; chans[ch.chan]->hdlcnetdev->netdev.set_mode = NULL; chans[ch.chan]->hdlcnetdev->netdev.xmit = zt_xmit; -#endif +#endif /* NEW_HDLC_INTERFACE */ chans[ch.chan]->hdlcnetdev->netdev.netdev.irq = chans[ch.chan]->span->irq; chans[ch.chan]->hdlcnetdev->netdev.netdev.tx_queue_len = 50; res = register_hdlc_device(&chans[ch.chan]->hdlcnetdev->netdev); -- cgit v1.2.3