Wrap boolean_t definition with _BOOLEAN_T_DEFINED.
typedef unsigned char uchar_t;
#define _UCHAR_T_DEFINED 1
#endif
-typedef enum { B_FALSE,B_TRUE } boolean_t;
+#ifndef _BOOLEAN_T_DEFINED
+ typedef enum { B_FALSE, B_TRUE } boolean_t;
+ #define _BOOLEAN_T_DEFINED 1
+#endif
#elif defined(__FreeBSD__)
typedef signed long long int __int64_t;
typedef unsigned long long int __uint64_t;
-typedef enum { B_FALSE,B_TRUE } boolean_t;
+#ifndef _BOOLEAN_T_DEFINED
+ typedef enum { B_FALSE, B_TRUE } boolean_t;
+ #define _BOOLEAN_T_DEFINED 1
+#endif
+
typedef __int64_t prid_t; /* project ID */
typedef __uint32_t inst_t; /* an instruction */