aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-08-06 11:40:41 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-08-06 11:40:41 +0200
commit59067f0f587f75908c4f990bcbab29340c7f7652 (patch)
treea5a31d15ab3929055fc7132519bc349fa47edbf2 /src
parent3321b2bc6529acbde307911dc8b363125c7f9a36 (diff)
repl.cc: Check for HAVE_BOEHMGC
Fixes #3906.
Diffstat (limited to 'src')
-rw-r--r--src/nix/repl.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc
index fb9050d0d..c3c9e54a8 100644
--- a/src/nix/repl.cc
+++ b/src/nix/repl.cc
@@ -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;