From c459c9ead3476a8edc1cd453fafa2b1c83c20e60 Mon Sep 17 00:00:00 2001 From: Rik Faith Date: Thu, 20 Jul 2000 00:48:12 +0000 Subject: Added support for building as modules or as part of monolithic kernel --- linux-core/drmP.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'linux-core/drmP.h') diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 9ad83bde..3362313e 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -127,6 +127,14 @@ typedef struct wait_queue *wait_queue_head_t; #endif #ifndef NOPAGE_OOM #define NOPAGE_OOM 0 +#endif + + /* module_init/module_exit added in 2.3.13 */ +#ifndef module_init +#define module_init(x) int init_module(void) { return x(); } +#endif +#ifndef module_exit +#define module_exit(x) void cleanup_module(void) { x(); } #endif /* Generic cmpxchg added in 2.3.x */ -- cgit v1.2.3