diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index 1df6246d38a1f..0e374240b84ec 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -48,6 +48,10 @@ # elif defined(__FreeBSD__) /* FreeBSD defines `openpty` in */ # include +# elif defined(__NetBSD__) +/* On recent NetBSD releases the emalloc, estrdup ... calls had been introduced in libutil */ +# include +extern int openpty(int *, int *, char *, struct termios *, struct winsize *); # else /* Mac OS X (and some BSDs) define `openpty` in */ # include