Skip to content

Instantly share code, notes, and snippets.

@Gottox
Created February 15, 2017 09:10
Show Gist options
  • Save Gottox/ba7731200229425d2cbcd5c8fb4fe213 to your computer and use it in GitHub Desktop.
Save Gottox/ba7731200229425d2cbcd5c8fb4fe213 to your computer and use it in GitHub Desktop.
diff --git a/src/pty.cpp b/src/pty.cpp
index 68afa01..9f30eb8 100644
--- a/src/pty.cpp
+++ b/src/pty.cpp
@@ -6,6 +6,7 @@
# include <termios.h>
#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
# include <sys/ioctl.h>
+# include <unistd.h>
/*
* from pty.js:
* From node v0.10.28 (at least?) there is also a "util.h" in node/src,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment