| 1 | ```
|
| 2 | cryptcommon/ZrtpRandom.h:77:61: error: unknown type name 'bool'
|
| 3 | 77 | int zrtp_AddEntropy(const uint8_t *buffer, uint32_t length, bool isLocked);
|
| 4 | | ^~~~
|
| 5 | cryptcommon/ZrtpRandom.h:33:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
|
| 6 | 32 | #include <sys/types.h>
|
| 7 | +++ |+#include <stdbool.h>
|
| 8 | 33 |
|
| 9 | ```
|
| 10 |
|
| 11 | diff --git a/cryptcommon/ZrtpRandom.h b/cryptcommon/ZrtpRandom.h
|
| 12 | index ee8640a..44d0b6b 100644
|
| 13 | |
| 14 | |
| 15 | @@ -30,6 +30,7 @@
|
| 16 | #endif
|
| 17 | #include <stdint.h>
|
| 18 | #include <sys/types.h>
|
| 19 | +#include <stdbool.h>
|
| 20 |
|
| 21 | #ifdef __cplusplus
|
| 22 | class ZrtpRandom {
|
| 23 | @@ -82,4 +83,4 @@ int zrtp_getRandomData(uint8_t *buffer, uint32_t length);
|
| 24 | }
|
| 25 | #endif
|
| 26 |
|
| 27 | -#endif /* ZRTPRANDOM */
|
| 28 | \ No newline at end of file
|
| 29 | +#endif /* ZRTPRANDOM */
|