Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: compiling kernel for amd64 fails
On Wed, Jan 16, 2008 at 06:17:45PM +0100, Kurt Schreiner wrote:
> Hi,
>
> TSSIA ;-)
>
> made it compile w/ the following "patch":
>
> cvs diff -u sys/kern/sys_module.c
> Index: sys/kern/sys_module.c
> ===================================================================
> RCS file: /cvsroot/src/sys/kern/sys_module.c,v
> retrieving revision 1.1
> diff -u -r1.1 sys_module.c
> --- sys/kern/sys_module.c 16 Jan 2008 12:34:51 -0000 1.1
> +++ sys/kern/sys_module.c 16 Jan 2008 17:16:53 -0000
> @@ -78,7 +78,7 @@
> case MODCTL_UNLOAD:
> /* Authorize. */
> error = kauth_authorize_system(l->l_cred, KAUTH_SYSTEM_MODULE,
> - 0, (void *)SCARG(uap, cmd), NULL, NULL);
> + 0, (void *)(long)SCARG(uap, cmd), NULL, NULL);
Use uintptr_t ?
Dave
--
David Young OJC Technologies
dyoung%ojctech.com@localhost Urbana, IL * (217) 278-3933 ext 24
Home |
Main Index |
Thread Index |
Old Index