summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-08-23 08:43:33 +0200
committerJean-Francois Moine <moinejf@free.fr>2008-08-23 08:43:33 +0200
commite7e0275a6146c377a318ea69ba83532b2ecf4080 (patch)
tree908890d5dfd5a4e4575c4f3c74031350d4402317 /v4l/compat.h
parent2019504e7d4a9558886c6327b9f6c684e9f5b252 (diff)
parentab19cb308e86c5aeb0531bbbf5bfb2c09d3423a3 (diff)
downloadmediapointer-dvb-s2-e7e0275a6146c377a318ea69ba83532b2ecf4080.tar.gz
mediapointer-dvb-s2-e7e0275a6146c377a318ea69ba83532b2ecf4080.tar.bz2
merge: from v4l-dvb
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 551696082..6df2f6f13 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -52,14 +52,11 @@
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
-# define PCIAGP_FAIL 0
-
+#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
+#define PCIAGP_FAIL 0
#define vmalloc_32_user(a) vmalloc_32(a)
-#endif
-
/* bool type and enum-based definition of true and false was added in 2.6.19 */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
typedef int bool;
#define true 1
#define false 0
@@ -231,7 +228,7 @@ typedef unsigned long uintptr_t;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
static inline int list_is_singular(const struct list_head *head)
{
- return !list_empty(head) && (head->next == head->prev);
+ return !list_empty(head) && (head->next == head->prev);
}
#endif