]> git.itanic.dy.fi Git - sdl-planets/commitdiff
list.h: Make it compile outside of the linux kernel tree
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 7 Mar 2010 11:11:56 +0000 (13:11 +0200)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 7 Mar 2010 11:11:56 +0000 (13:11 +0200)
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
list.h

diff --git a/list.h b/list.h
index ad8d55c1f806cd7fdd0df9fac491a4fe88dad6a8..f12f6b35d2a273deca8aab533ba50cd6bfc8d064 100644 (file)
--- a/list.h
+++ b/list.h
@@ -5,8 +5,12 @@
  * Borrowed from linux kernel
  */
 
-#define LIST_POISON1   0x12345678
-#define LIST_POISON2   0x98765432
+#define LIST_POISON1   ((void *)0x12345678)
+#define LIST_POISON2   ((void *)0x98765432)
+
+static inline void prefetch(void *a)
+{
+}
 
 /*
  * Simple doubly linked list implementation.