mirror of
https://github.com/NixOS/nix
synced 2025-07-08 15:13:55 +02:00
repl.cc: Check for HAVE_BOEHMGC
Fixes #3906.
(cherry picked from commit 59067f0f58
)
This commit is contained in:
parent
8b04d28a5b
commit
d5c7efae38
1 changed files with 6 additions and 1 deletions
|
@ -31,8 +31,10 @@ extern "C" {
|
||||||
#include "command.hh"
|
#include "command.hh"
|
||||||
#include "finally.hh"
|
#include "finally.hh"
|
||||||
|
|
||||||
|
#if HAVE_BOEHMGC
|
||||||
#define GC_INCLUDE_NEW
|
#define GC_INCLUDE_NEW
|
||||||
#include <gc/gc_cpp.h>
|
#include <gc/gc_cpp.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
|
@ -44,7 +46,10 @@ namespace nix {
|
||||||
#define ESC_CYA "\033[36m"
|
#define ESC_CYA "\033[36m"
|
||||||
#define ESC_END "\033[0m"
|
#define ESC_END "\033[0m"
|
||||||
|
|
||||||
struct NixRepl : gc
|
struct NixRepl
|
||||||
|
#if HAVE_BOEHMGC
|
||||||
|
: gc
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
string curDir;
|
string curDir;
|
||||||
EvalState state;
|
EvalState state;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue