From d64a9be6957b22ef85912e3c4ecc9847d742adc6 Mon Sep 17 00:00:00 2001 From: ThePrez Date: Fri, 11 Oct 2019 13:29:34 -0500 Subject: [PATCH] Allow for differently-named VWERASE/VDISCARD --- src/unix/pty.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/unix/pty.cc b/src/unix/pty.cc index be0021d71..d2f4c1131 100644 --- a/src/unix/pty.cc +++ b/src/unix/pty.cc @@ -45,6 +45,14 @@ #include /* tcgetattr, tty_ioctl */ +/* Some platforms name VWERASE and VDISCARD differently */ +#if !defined(VWERASE) && defined(VWERSE) +#define VWERASE VWERSE +#endif +#if !defined(VDISCARD) && defined(VDISCRD) +#define VDISCARD VDISCRD +#endif + /* environ for execvpe */ /* node/src/node_child_process.cc */ #if defined(__APPLE__) && !TARGET_OS_IPHONE