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

Dag-Erling Smørgrav des at des.no
Mon Dec 21 11:05:41 UTC 2009


Doug Barton <dougb at FreeBSD.org> writes:
> Trying to look at this from the user perspective, it's kind of silly
> that if what I want is COMPAT5 I also need to add COMPAT<somethingelse>.
>
> I don't know the issues in the code so I don't know what the solution
> should be on the back end, but on the front end what needs to work is
> that I specify the compat level I want in my kernel config, then the
> code does what's necessary to make that work.

So basically

#ifdef FREEBSD_COMPAT4
#ifndef FREEBSD_COMPAT5
#define FREEBSD_COMPAT5
#endif
#endif

#ifdef FREEBSD_COMPAT5
#ifndef FREEBSD_COMPAT6
#define FREEBSD_COMPAT6
#endif
#endif

#ifdef FREEBSD_COMPAT6
#ifndef FREEBSD_COMPAT7
#define FREEBSD_COMPAT7
#endif
#endif

etc.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the svn-src-all mailing list