diff options
author | John Birrell <jb@FreeBSD.org> | 2007-11-28 22:16:00 +0000 |
---|---|---|
committer | John Birrell <jb@FreeBSD.org> | 2007-11-28 22:16:00 +0000 |
commit | b468fe2bcede74418ab18d4ee8a91450b0d6d77a (patch) | |
tree | 73612d86f736695a0dc3ddd3a907d8421ebea87e /sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h | |
parent | 9587fed57255cabd6861ed5d36177a1fad911022 (diff) | |
download | src-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.h | 3 |
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. |