t/zbd: avoid test case 31 failure with small devices
[fio.git] / lib / types.h
index 287a3b42b7c462e1cb43cc1f7869e4fb93068fff..d92b064c25101f3858ee5a548edb2815b8c8bd22 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef FIO_TYPES_H
 #define FIO_TYPES_H
 
-#ifndef CONFIG_HAVE_BOOL
+#if !defined(CONFIG_HAVE_BOOL) && !defined(__cplusplus)
 typedef int bool;
 #ifndef false
 #define false  0
@@ -10,7 +10,11 @@ typedef int bool;
 #define true   1
 #endif
 #else
-#include <stdbool.h>
+#include <stdbool.h> /* IWYU pragma: export */
+#endif
+
+#if !defined(CONFIG_HAVE_KERNEL_RWF_T)
+typedef int __kernel_rwf_t;
 #endif
 
 #endif