summaryrefslogtreecommitdiff
path: root/kernel/wctdm24xxp/GpakCust.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-08-20 21:16:40 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-08-20 21:16:40 +0000
commit252bd2c93858654d6af5ebca0ed6704f1c14401a (patch)
tree8cc52beb1765d3b6131ab36738dd36fe5aa58223 /kernel/wctdm24xxp/GpakCust.c
parent641e8ab0966ece7252a84e4f943b018991d8f936 (diff)
improve compatibility with 2.6.26 and 2.6.27 kernels
(closes issue #13277) Reported by: smurfix Patches: zap-dev.patch uploaded by smurfix (license 547) zap-sema.patch uploaded by smurfix (license 547) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4496 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/wctdm24xxp/GpakCust.c')
-rw-r--r--kernel/wctdm24xxp/GpakCust.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/wctdm24xxp/GpakCust.c b/kernel/wctdm24xxp/GpakCust.c
index 4245eab..fe29458 100644
--- a/kernel/wctdm24xxp/GpakCust.c
+++ b/kernel/wctdm24xxp/GpakCust.c
@@ -35,7 +35,11 @@
#include <linux/version.h>
#include <linux/delay.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
+#include <linux/semaphore.h>
+#else
#include <asm/semaphore.h>
+#endif
#include "zaptel.h"
#include "wctdm24xxp.h"