From f0f6509a72abf3a3a0a8f26a35b7a8f3d96cbb9b Mon Sep 17 00:00:00 2001 From: Rik Faith Date: Fri, 18 Aug 2000 13:55:23 +0000 Subject: Sync with Linux 2.4.0-test7/pre4 --- linux-core/drmP.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linux-core') diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 4f85d07c..0fa20571 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -46,6 +46,7 @@ #include #include #include /* For (un)lock_kernel */ +#include #include #include #include @@ -140,7 +141,7 @@ typedef struct wait_queue *wait_queue_head_t; #endif /* virt_to_page added in 2.4.0-test6 */ -#ifndef virt_to_page +#if LINUX_VERSION_CODE < 0x020400 #define virt_to_page(kaddr) (mem_map + MAP_NR(kaddr)) #endif -- cgit v1.2.3