Skip to content

Commit

Permalink
chore: remove support for really old node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed Jun 6, 2019
1 parent d4efa93 commit 5db10ca
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/unix/pty.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,7 @@
#if defined(__GLIBC__) || defined(__CYGWIN__)
#include <pty.h>
#elif defined(__APPLE__) || defined(__OpenBSD__) || defined(__NetBSD__)
/**
* From node v0.10.28 (at least?) there is also a "util.h" in node/src, which
* would confuse the compiler when looking for "util.h".
*/
#if NODE_VERSION_AT_LEAST(0, 10, 28)
#include <../include/util.h>
#else
#include <util.h>
#endif
#elif defined(__FreeBSD__)
#include <libutil.h>
#elif defined(__sun)
Expand Down Expand Up @@ -120,11 +112,7 @@ static void
pty_waitpid(void *);

static void
#if NODE_VERSION_AT_LEAST(0, 11, 0)
pty_after_waitpid(uv_async_t *);
#else
pty_after_waitpid(uv_async_t *, int);
#endif

static void
pty_after_close(uv_handle_t *);
Expand Down Expand Up @@ -476,11 +464,7 @@ pty_waitpid(void *data) {
*/

static void
#if NODE_VERSION_AT_LEAST(0, 11, 0)
pty_after_waitpid(uv_async_t *async) {
#else
pty_after_waitpid(uv_async_t *async, int unhelpful) {
#endif
Nan::HandleScope scope;
pty_baton *baton = static_cast<pty_baton*>(async->data);

Expand Down

0 comments on commit 5db10ca

Please sign in to comment.