diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-10-22T13·39+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-10-22T13·39+0000 |
commit | 64c3325b0bef8c0234bf797033e129323b36ad1e (patch) | |
tree | 75e6e8d30b204101289a808d7132af9ccb848f82 /src/libexpr/eval.hh | |
parent | 76feaf016a7e9a9b019148df5ff84a63e48dbda7 (diff) |
* Make building against the Boehm GC a configure option.
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 9144d99a4b38..738ca9439f6d 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -7,7 +7,9 @@ #include <map> +#if HAVE_BOEHMGC #include <gc/gc_allocator.h> +#endif namespace nix { @@ -18,7 +20,11 @@ struct Env; struct Value; struct Attr; +#if HAVE_BOEHMGC typedef std::map<Symbol, Attr, std::less<Symbol>, gc_allocator<std::pair<const Symbol, Attr> > > Bindings; +#else +typedef std::map<Symbol, Attr> Bindings; +#endif typedef enum { |