summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2011-11-02 18:59:03 +0000
committerShaun Ruffell <sruffell@digium.com>2011-11-02 18:59:03 +0000
commit43fb2d56a304c147d8089dbbcbf3fceaac798a8b (patch)
treed36c429246644d3f3de824504f3aade717ef94f1 /include
parent6139ae072c2452bd97b5951ec0b4e12d85b93af6 (diff)
dahdi: Define POLLRDHUP on kernels < 2.6.17
Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10303 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
-rw-r--r--include/dahdi/kernel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
index 18f5319..d3c97c8 100644
--- a/include/dahdi/kernel.h
+++ b/include/dahdi/kernel.h
@@ -1429,6 +1429,11 @@ static inline void list_replace(struct list_head *old, struct list_head *new)
} while (0)
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 17)
+#ifndef POLLRDHUP
+#define POLLRDHUP 0
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 14)
#define kzalloc(a, b) kcalloc(1, a, b)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12)
@@ -1455,6 +1460,7 @@ typedef u32 __bitwise pm_message_t;
#endif /* 2.6.11 */
#endif /* 2.6.12 */
#endif /* 2.6.14 */
+#endif /* 2.6.17 */
#endif /* 2.6.18 */
#endif /* 2.6.22 */
#endif /* 2.6.25 */