smalloc: remove `env.h` include
authorFedor Indutny <fedor.indutny@gmail.com>
Fri, 28 Feb 2014 16:52:32 +0000 (20:52 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Sun, 2 Mar 2014 08:05:13 +0000 (12:05 +0400)
Since `smalloc.h` is included in a `node_buffer.h`, including private
headers in it is strictly prohibited.

fix #7206

src/smalloc.h

index 97dda17..3321b4a 100644 (file)
 
 #include "node.h"
 #include "v8.h"
-#include "env.h"
 
 namespace node {
 
+// Forward declaration
+class Environment;
+
 /**
  * Simple memory allocator.
  *