diff options
author | Heiko Becker <heirecka@exherbo.org> | 2022-02-03 22:46:41 +0000 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2022-02-04 16:11:58 +0900 |
commit | a484bd665f4afaf39eaa0fdf3aa1c7dae75078b4 (patch) | |
tree | 2fa52889bac778007ac4ab3dd9bd5afc49090f3c /random/jitterentropy-base-user.h | |
parent | d480db6e6c806835405c6795024a8fd91448c16b (diff) | |
download | libgcrypt-a484bd665f4afaf39eaa0fdf3aa1c7dae75078b4.tar.gz |
jitterentropy: Include <fcntl.h> and <limits.h>
* random/jitterentropy-base-user.h: Include <fcntl.h> for O_RDONLY
* random/jitterentropy-base-user.h: Include <limits.h> for LONG_MAX
--
Cherry-picked from LIBGCRYPT-1.10-BRANCH branch of:
ffaef0be613121d3ee37867d82932a7a30c2bc6d
Fixes the build with musl libc.
Signed-off-by: Heiko Becker <heirecka@exherbo.org>
Diffstat (limited to 'random/jitterentropy-base-user.h')
-rw-r--r-- | random/jitterentropy-base-user.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |