diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-12-11 18:27:15 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-12-11 18:27:15 +0000 |
commit | c67fe7392e989f369f5af0bf5a3a9908efb6ca5c (patch) | |
tree | 64ddcef7ee3fd0a40e9d237c1e5e38d18862d8f4 /zaptel.h | |
parent | 5357ea9f7435fe331279f00921b7d28020606192 (diff) |
kernel 2.6.19 API changes compatibility
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1697 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.h')
-rw-r--r-- | zaptel.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -56,6 +56,16 @@ #define zap_pci_module pci_module_init #endif +#ifdef LINUX26 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) +#define ZAP_IRQ_HANDLER(a) static irqreturn_t a(int irq, void *dev_id) +#else +#define ZAP_IRQ_HANDLER(a) static irqreturn_t a(int irq, void *dev_id, struct pt_regs *regs) +#endif +#else +#define ZAP_IRQ_HANDLER(a) static void a(int irq, void *dev_id, struct pt_regs *regs) +#endif + #include "ecdis.h" #include "fasthdlc.h" #endif |