VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-08-07 23:59:46 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-08-08 00:04:52 +0200
commitb764926bd358c5601a36f8362a2213c54d08fe49 (patch)
tree362ea0ea0dab0d6a0bcab9bb8d9f8bb6736bab32
parente7a98982730f3c668f1826aa38a98b961859f914 (diff)
downloadVeraCrypt-b764926bd358c5601a36f8362a2213c54d08fe49.tar.gz
VeraCrypt-b764926bd358c5601a36f8362a2213c54d08fe49.zip
Linux/FreeBSD: Fix build error using older compilers
-rw-r--r--src/Core/RandomNumberGenerator.cpp5
-rw-r--r--src/Core/VolumeCreator.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/Core/RandomNumberGenerator.cpp b/src/Core/RandomNumberGenerator.cpp
index 38a228ee..91247d87 100644
--- a/src/Core/RandomNumberGenerator.cpp
+++ b/src/Core/RandomNumberGenerator.cpp
@@ -14,6 +14,11 @@
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>
+
+#ifndef ERESTART
+#define ERESTART EINTR
+#endif
+
#endif
#include "RandomNumberGenerator.h"
diff --git a/src/Core/VolumeCreator.h b/src/Core/VolumeCreator.h
index 77a8e05a..fc40f34d 100644
--- a/src/Core/VolumeCreator.h
+++ b/src/Core/VolumeCreator.h
@@ -18,6 +18,7 @@
#include "RandomNumberGenerator.h"
#if defined (TC_LINUX)
#include "Platform/Unix/Process.h"
+#include <errno.h>
#endif
#define VC_MIN_BTRFS_VOLUME_SIZE 114294784ULL