summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/proc_open.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c
index 1df6246d38..0e374240b8 100644
--- a/ext/standard/proc_open.c
+++ b/ext/standard/proc_open.c
@@ -48,6 +48,10 @@
# elif defined(__FreeBSD__)
/* FreeBSD defines `openpty` in <libutil.h> */
# include <libutil.h>
+# elif defined(__NetBSD__)
+/* On recent NetBSD releases the emalloc, estrdup ... calls had been introduced in libutil */
+# include <sys/termios.h>
+extern int openpty(int *, int *, char *, struct termios *, struct winsize *);
# else
/* Mac OS X (and some BSDs) define `openpty` in <util.h> */
# include <util.h>