You may come across code that needs modifications or
conditional compilation based upon what version of FreeBSD Unix
it is running under. The preferred way to tell FreeBSD versions
apart are the __FreeBSD_version
and
__FreeBSD__
macros defined in sys/param.h.
If this file is not included add the code,
to the proper place in the .c
file.
__FreeBSD__
is defined in all
versions of FreeBSD as their major version number. For
example, in FreeBSD 9.x, __FreeBSD__
is
defined to be 9
.
All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/
Questions that are not answered by the
documentation may be
sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.