Mailing List Archive

[PATCH] jitterentropy: Include <fcntl.h> and <limits.h>
From: Heiko Becker <heirecka@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@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


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@lists.gnupg.org
https://lists.gnupg.org/mailman/listinfo/gcrypt-devel