Re: svn commit: r200606 - in head/sys: compat/freebsd32 sys

[ Available lists | Index of svn-src-head | Month of Dec 2009 | Week of 22 Dec 2009 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Dag-Erling Smørgrav <des@des.no>
Date
22 Dec 2009 10:26:52
Subject
Re: svn commit: r200606 - in head/sys: compat/freebsd32 sys
Message-ID
864onj8ftg.fsf@ds4.des.no


[ Hide this part ]
"M. Warner Losh" <imp@bsdimp.com> writes:
> The trouble is that we need to do this globally, or certain
> definitions don't get defined. It is easier to just #error out than
> hack config to do the right thing I think...

Suggestion: Introduce <sys/_compat.h> which includes "opt_compat.h" and
contains the appropriate logic, then s@"opt_compat.h"@<sys/_compat.h>@
throughout the kernel. While you're there, add #include <sys/_compat.h>
inside #ifdef _KERNEL in headers that use the COMPAT_FREEBSDn macros
(e.g. fcntl.h) and see what breaks...

DES
--
Dag-Erling Smrgrav - des@des.no

Elapsed time: 0.186 seconds