VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2023-08-06 10:28:42 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2023-08-06 10:28:42 +0200
commitfba1943d87eb604edc5c4f7d86878425eb48cd6b (patch)
tree7a424527f113e5eca6d3ea124ff7cf7be59e4ca0 /src
parentdab261c6941e1ee04d823effdf65784f1a554cb8 (diff)
downloadVeraCrypt-fba1943d87eb604edc5c4f7d86878425eb48cd6b.tar.gz
VeraCrypt-fba1943d87eb604edc5c4f7d86878425eb48cd6b.zip
Linux/macOS: Add explicit include of <sys/types.h> to define ssize_t
Some systems (e.g. Alpine Linux) seems to require this.
Diffstat (limited to 'src')
-rw-r--r--src/Crypto/jitterentropy-base-user.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Crypto/jitterentropy-base-user.h b/src/Crypto/jitterentropy-base-user.h
index b32d8ed3..aaefb41a 100644
--- a/src/Crypto/jitterentropy-base-user.h
+++ b/src/Crypto/jitterentropy-base-user.h
@@ -85,6 +85,8 @@ static VC_INLINE void jent_get_nstime(uint64 *out)
#else
+#include <sys/types.h>
+
#if CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64
/* taken from Linux kernel */