diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-06-08 19:09:09 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-06-08 19:09:09 +0000 |
commit | d2cce5b8661b791e6761340ca1df64719cb848b4 (patch) | |
tree | 09cca70bc1b1a57cbd8efa685f4bffdc1f71ad33 /drivers/dahdi/voicebus | |
parent | 596aff760f327377616b749159905cc0a39abe3b (diff) |
include semaphore.h explicitly for newer kernels
With kernel version >= 2.6.35-rc1, building failed with:
drivers/dahdi/voicebus/GpakCust.h:114: error: field ‘sem’ has incomplete type
(closes issue #17382)
Reported by: Chainsaw
Patches:
07-semaphore-include-not-optional.diff uploaded by Chainsaw (license 723)
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8758 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/voicebus')
-rw-r--r-- | drivers/dahdi/voicebus/GpakCust.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/dahdi/voicebus/GpakCust.h b/drivers/dahdi/voicebus/GpakCust.h index 2b28480..64ef44a 100644 --- a/drivers/dahdi/voicebus/GpakCust.h +++ b/drivers/dahdi/voicebus/GpakCust.h @@ -40,6 +40,11 @@ #include <linux/completion.h> #include <linux/workqueue.h> #include <linux/delay.h> +#include <linux/version.h> + +#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 25) +#include <linux/semaphore.h> +#endif #include "gpakenum.h" #include "adt_lec.h" |