PERFORCE change 98169 for review
John Birrell
jb at FreeBSD.org
Tue May 30 16:39:34 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=98169
Change 98169 by jb at jb_freebsd2 on 2006/05/30 23:37:13
Define a the OpenSolaris version that the FreeBSD headers are
sort-of compatible with.
We need something to use to determine if there are extra definitions
required.
The need for this becomes obvious when trying to upgrade a FreeBSD-6
system to -current with DTrace support in it. Since FreeBSD-6 has
no OpenSolaris compatibility, we need to add it. However we don't want
to have to keep adding it for everything that we want to import
from OpenSolaris. Eventually we'll get to the point where we
stabilise the compatibility definitions and adding stuff won't
be necessary.
Oh Single Unix Speciciation where art thou? And why aren't you
sufficient to define a single Unix?
Affected files ...
.. //depot/projects/dtrace/src/sys/sys/param.h#5 edit
Differences ...
==== //depot/projects/dtrace/src/sys/sys/param.h#5 (text+ko) ====
@@ -336,6 +336,15 @@
*/
#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 20060508
#endif
#endif /* _SYS_PARAM_H_ */
More information about the p4-projects
mailing list