PERFORCE change 127862 for review
John Birrell
jb at FreeBSD.org
Sat Oct 20 16:44:22 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=127862
Change 127862 by jb at jb_freebsd1 on 2007/10/20 23:44:11
Prevent Solaris-specific things from clashing with FreeBSD's
definitions.
Affected files ...
.. //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/sys/sysmacros.h#2 edit
.. //depot/projects/dtrace6/src/sys/contrib/opensolaris/uts/common/sys/sysmacros.h#2 edit
Differences ...
==== //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/sys/sysmacros.h#2 (text+ko) ====
@@ -111,6 +111,7 @@
#define L_MAXMIN L_MAXMIN32
#endif
+#if defined(sun)
#ifdef _KERNEL
/* major part of a device internal to the kernel */
@@ -171,6 +172,8 @@
NODEV : (((dev_t)(x) >> L_BITSMINOR) & L_MAXMAJ))
#define geteminor(x) (minor_t)((x) & L_MAXMIN)
+#endif /* sun */
+
/*
* These are versions of the kernel routines for compressing and
* expanding long device numbers that don't return errors.
==== //depot/projects/dtrace6/src/sys/contrib/opensolaris/uts/common/sys/sysmacros.h#2 (text+ko) ====
@@ -111,6 +111,7 @@
#define L_MAXMIN L_MAXMIN32
#endif
+#if defined(sun)
#ifdef _KERNEL
/* major part of a device internal to the kernel */
@@ -171,6 +172,8 @@
NODEV : (((dev_t)(x) >> L_BITSMINOR) & L_MAXMAJ))
#define geteminor(x) (minor_t)((x) & L_MAXMIN)
+#endif /* sun */
+
/*
* These are versions of the kernel routines for compressing and
* expanding long device numbers that don't return errors.
More information about the p4-projects
mailing list