VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Core/RandomNumberGenerator.cpp
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 /src/Core/RandomNumberGenerator.cpp
parente7a98982730f3c668f1826aa38a98b961859f914 (diff)
downloadVeraCrypt-b764926bd358c5601a36f8362a2213c54d08fe49.tar.gz
VeraCrypt-b764926bd358c5601a36f8362a2213c54d08fe49.zip
Linux/FreeBSD: Fix build error using older compilers
Diffstat (limited to 'src/Core/RandomNumberGenerator.cpp')
-rw-r--r--src/Core/RandomNumberGenerator.cpp5
1 files changed, 5 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"