Index: b/usr/src/uts/common/sys/types.h =================================================================== --- a/usr/src/uts/common/sys/types.h 2014-03-01 22:56:00.259198451 +0400 +++ b/usr/src/uts/common/sys/types.h 2014-03-01 22:56:13.834286748 +0400 @@ -191,15 +191,17 @@ typedef long blksize_t; /* used for block sizes */ #endif -#if defined(__XOPEN_OR_POSIX) -typedef enum { _B_FALSE, _B_TRUE } boolean_t; -#else +#ifndef BOOLEAN_T_DEFINED +#define BOOLEAN_T_DEFINED +#define _B_TRUE B_TRUE +#define _B_FALSE B_FALSE typedef enum { B_FALSE, B_TRUE } boolean_t; +#endif + #ifdef _KERNEL #define VALID_BOOLEAN(x) (((x) == B_FALSE) || ((x) == B_TRUE)) #define VOID2BOOLEAN(x) (((uintptr_t)(x) == 0) ? B_FALSE : B_TRUE) #endif /* _KERNEL */ -#endif /* defined(__XOPEN_OR_POSIX) */ #ifdef _KERNEL #define BOOLEAN2VOID(x) ((x) ? 1 : 0)