diff options
Diffstat (limited to 'src/Core')
-rw-r--r-- | src/Core/RandomNumberGenerator.cpp | 5 | ||||
-rw-r--r-- | src/Core/VolumeCreator.h | 1 |
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 |