From fe94f74804f4e5c89ac34d785e7210e9fdf53e71 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 27 May 2020 23:26:13 +0100 Subject: [PATCH] Build fix for newer versions of NetBSD. its libutil contains newer conflicting apis as estrdup, emalloc. --- ext/standard/proc_open.c | 4 ++++ 1 file changed, 4 insertions(+) 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