Linux/FreeBSD: Fix build error using older compilers

This commit is contained in:
Mounir IDRASSI 2020-08-07 23:59:46 +02:00
parent e7a9898273
commit b764926bd3
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F
2 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,11 @@
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>
#ifndef ERESTART
#define ERESTART EINTR
#endif
#endif
#include "RandomNumberGenerator.h"

View File

@ -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