--- kqemu-linux.c 2006-03-27 13:58:01.000000000 -0700 +++ kqemu-linux.c.new 2006-04-01 23:10:54.754966655 -0700 @@ -3,6 +3,9 @@ * Copyright (c) 2004-2005 Fabrice Bellard */ #include +#ifndef MODULE_PARM + #include +#endif #include #include #include @@ -48,7 +51,11 @@ /* if 0 is used, then devfs/udev is used to automatically create the device */ int major = 250; -MODULE_PARM(major,"i"); +#ifdef MODULE_PARM + MODULE_PARM(major,"i"); +#else + module_param(major, int, 0444); +#endif /* lock the page at virtual address 'user_addr' and return its page index. Return -1 if error */