executor: unbreak on OpenBSD

Commit b5df78dc ("all: support extra coverage") broke the executor on OpenBSD:

  executor/executor.cc:61:11: error: unused variable 'kExtraCoverSize' [-Werror,-Wunused-const-variable]
  const int kExtraCoverSize = 256 << 10;
This commit is contained in:
Anton Lindqvist 2019-01-17 07:52:12 +01:00 committed by Dmitry Vyukov
parent 528f444be9
commit d2bc932090
3 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@
#include <unistd.h>
#if SYZ_EXECUTOR
const int kExtraCoverSize = 256 << 10;
struct cover_t;
static void cover_reset(cover_t* cov);
#endif

View File

@ -58,7 +58,6 @@ const int kOutPipeFd = kMaxFd - 2; // remapped from stdout
const int kCoverFd = kOutPipeFd - kMaxThreads;
const int kMaxArgs = 9;
const int kCoverSize = 256 << 10;
const int kExtraCoverSize = 256 << 10;
const int kFailStatus = 67;
const int kRetryStatus = 69;
const int kErrorStatus = 68;

View File

@ -975,6 +975,7 @@ static int do_sandbox_none(void)
#include <unistd.h>
#if SYZ_EXECUTOR
const int kExtraCoverSize = 256 << 10;
struct cover_t;
static void cover_reset(cover_t* cov);
#endif