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

Dag-Erling Smørgrav des at des.no
Tue Dec 22 10:26:52 UTC 2009


"M. Warner Losh" <imp at 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 Smørgrav - des at des.no


More information about the svn-src-head mailing list