diff -Naur linux-2.6.9-rc1/include/linux/list.h linux-2.6.9-rc1-a/include/linux/list.h --- linux-2.6.9-rc1/include/linux/list.h 2004-09-04 18:18:18.000000000 +0200 +++ linux-2.6.9-rc1-a/include/linux/list.h 2004-09-04 18:23:55.401859688 +0200 @@ -1,6 +1,10 @@ #ifndef _LINUX_LIST_H #define _LINUX_LIST_H +struct list_head { + struct list_head *next, *prev; +}; + #ifdef __KERNEL__ #include @@ -25,10 +29,6 @@ * using the generic single-entry routines. */ -struct list_head { - struct list_head *next, *prev; -}; - #define LIST_HEAD_INIT(name) { &(name), &(name) } #define LIST_HEAD(name) \ @@ -696,7 +696,5 @@ ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \ pos = rcu_dereference(pos->next)) -#else -#warning "don't include kernel headers in userspace" #endif /* __KERNEL__ */ #endif