From 34bf6e46beb4b94e9ed3c51da8589d604f19bc4e Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Fri, 28 Feb 2014 20:52:32 +0400 Subject: [PATCH] smalloc: remove `env.h` include Since `smalloc.h` is included in a `node_buffer.h`, including private headers in it is strictly prohibited. fix #7206 --- src/smalloc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/smalloc.h b/src/smalloc.h index 97dda17b64..3321b4a895 100644 --- a/src/smalloc.h +++ b/src/smalloc.h @@ -24,10 +24,12 @@ #include "node.h" #include "v8.h" -#include "env.h" namespace node { +// Forward declaration +class Environment; + /** * Simple memory allocator. *