Skip to content

Commit

Permalink
Linux/FreeBSD: Fix build error using older compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
idrassi committed Aug 7, 2020
1 parent e7a9898 commit b764926
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Core/RandomNumberGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>

#ifndef ERESTART
#define ERESTART EINTR
#endif

#endif

#include "RandomNumberGenerator.h"
Expand Down
1 change: 1 addition & 0 deletions src/Core/VolumeCreator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b764926

Please sign in to comment.