Add OpenSolaris compatibility definitions which are only visible if

_SOLARIS_C_SOURCE is defined.

The _OpenSolaris_version is set to match the last import of the OpenSolaris
tar ball and is based on the date in that file name.
This commit is contained in:
John Birrell 2006-08-05 20:35:11 +00:00
parent d7df8235b0
commit 6d9b0007ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161008

View File

@ -331,4 +331,20 @@ __END_DECLS
#define ctodb(db) /* calculates pages to devblks */ \
((db) << (PAGE_SHIFT - DEV_BSHIFT))
/*
* Solaris compatibility definitions.
*/
#ifdef _SOLARIS_C_SOURCE
#define PAGESIZE PAGE_SIZE
/*
* The OpenSolaris version is set according to the version last imported
* from http://dlc.sun.com/osol/on/downloads/current/. In FreeBSD header
* files it can be used to detemine the level of compatibility that the
* FreeBSD headers provide to OpenSolaris code. Perhaps one day there
* will be a really, really Single Unix Specification.
*/
#define __OpenSolaris_version 20060731
#endif
#endif /* _SYS_PARAM_H_ */