projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configure: add gettid() test
[fio.git]
/
lib
/
types.h
diff --git
a/lib/types.h
b/lib/types.h
index 287a3b42b7c462e1cb43cc1f7869e4fb93068fff..d92b064c25101f3858ee5a548edb2815b8c8bd22 100644
(file)
--- a/
lib/types.h
+++ b/
lib/types.h
@@
-1,7
+1,7
@@
#ifndef FIO_TYPES_H
#define FIO_TYPES_H
#ifndef FIO_TYPES_H
#define FIO_TYPES_H
-#if
ndef CONFIG_HAVE_BOOL
+#if
!defined(CONFIG_HAVE_BOOL) && !defined(__cplusplus)
typedef int bool;
#ifndef false
#define false 0
typedef int bool;
#ifndef false
#define false 0
@@
-10,7
+10,11
@@
typedef int bool;
#define true 1
#endif
#else
#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
#endif
#endif