[PATCH] jitterentropy: Include <fcntl.h> and <limits.h>

heirecka at exherbo.org heirecka at exherbo.org
Thu Feb 3 23:46:41 CET 2022


From: Heiko Becker <heirecka at exherbo.org>

* random/jitterentropy-base-user.h: Include <fcntl.h> for O_RDONLY
* random/jitterentropy-base-user.h: Include <limits.h> for LONG_MAX

--

Fixes the build with musl libc.

Signed-off-by: Heiko Becker <heirecka at exherbo.org>
---
 random/jitterentropy-base-user.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/random/jitterentropy-base-user.h b/random/jitterentropy-base-user.h
index 326dfbed..389106ff 100644
--- a/random/jitterentropy-base-user.h
+++ b/random/jitterentropy-base-user.h
@@ -39,6 +39,9 @@
  * DAMAGE.
  */
 
+#include <fcntl.h>
+#include <limits.h>
+
 #ifndef GCRYPT_JITTERENTROPY_BASE_USER_H
 #define GCRYPT_JITTERENTROPY_BASE_USER_H
 
-- 
2.35.1




More information about the Gcrypt-devel mailing list