"M. Warner Losh" <firstname.lastname@example.org> 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...
Dag-Erling Smrgrav - email@example.com