aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>2007-11-28 22:16:00 +0000
committerJohn Birrell <jb@FreeBSD.org>2007-11-28 22:16:00 +0000
commitb468fe2bcede74418ab18d4ee8a91450b0d6d77a (patch)
tree73612d86f736695a0dc3ddd3a907d8421ebea87e /sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h
parent9587fed57255cabd6861ed5d36177a1fad911022 (diff)
downloadsrc-b468fe2bcede74418ab18d4ee8a91450b0d6d77a.tar.gz
src-b468fe2bcede74418ab18d4ee8a91450b0d6d77a.zip
* Check endianness the FreeBSD way.
* Use LBOLT rather than lbolt to avoid a clash with a FreeBSD global variable.
Notes
Notes: svn path=/head/; revision=174049
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h b/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h
index d77208488cea..9f16a078a61f 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h
+++ b/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h
@@ -111,6 +111,7 @@ extern unsigned char bcd_to_byte[256];
#define L_MAXMIN L_MAXMIN32
#endif
+#if defined(sun)
#ifdef _KERNEL
/* major part of a device internal to the kernel */
@@ -171,6 +172,8 @@ extern unsigned char bcd_to_byte[256];
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.