summaryrefslogtreecommitdiff
path: root/src/env.cc
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-02-12 22:33:20 +0100
committerAnna Henningsen <anna@addaleax.net>2018-03-15 12:53:06 +0100
commitc412150582de524beacd180646ec5f18c518a922 (patch)
tree85d153039162678feba5e1cef982d3712364bb37 /src/env.cc
parent8695273948846b999f528ede97c764638fbb6c40 (diff)
downloadandroid-node-v8-c412150582de524beacd180646ec5f18c518a922.tar.gz
android-node-v8-c412150582de524beacd180646ec5f18c518a922.tar.bz2
android-node-v8-c412150582de524beacd180646ec5f18c518a922.zip
src: make `FileHandle` a (readonly) `StreamBase`
This enables accessing files using a more standard pattern. Once some more refactoring has been performed on the other existing `StreamBase` streams, this could also be used to implement `fs` streams in a more standard manner. PR-URL: https://github.com/nodejs/node/pull/18936 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'src/env.cc')
-rw-r--r--src/env.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/env.cc b/src/env.cc
index 36a3612a78..d361262e22 100644
--- a/src/env.cc
+++ b/src/env.cc
@@ -2,6 +2,7 @@
#include "async_wrap.h"
#include "node_buffer.h"
#include "node_platform.h"
+#include "node_file.h"
#include <stdio.h>
#include <algorithm>