Skip to content

Commit

Permalink
repl.cc: Check for HAVE_BOEHMGC
Browse files Browse the repository at this point in the history
Fixes #3906.
  • Loading branch information
edolstra committed Aug 6, 2020
1 parent 3321b2b commit 59067f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/nix/repl.cc
Expand Up @@ -33,12 +33,17 @@ extern "C" {
#include "command.hh"
#include "finally.hh"

#if HAVE_BOEHMGC
#define GC_INCLUDE_NEW
#include <gc/gc_cpp.h>
#endif

namespace nix {

struct NixRepl : gc
struct NixRepl
#if HAVE_BOEHMGC
: gc
#endif
{
string curDir;
std::unique_ptr<EvalState> state;
Expand Down

0 comments on commit 59067f0

Please sign in to comment.