From: David Carlier Date: Sat, 8 Aug 2020 16:30:15 +0000 (+0100) Subject: proc_open/openpty: DragonFlyBSD build fix. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cedf463d1b677e60c5fce516bb52cc6cc79996ae;p=php proc_open/openpty: DragonFlyBSD build fix. Similarly to NetBSD emalloc-ish api had been introduced into libutil. Closes GH-5960. --- diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index 5e7a782471..2f5d15d738 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -48,9 +48,13 @@ # 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 +# elif defined(__NetBSD__) || defined(__DragonFly__) +/* On recent NetBSD/DragonFlyBSD releases the emalloc, estrdup ... calls had been introduced in libutil */ +# if defined(__NetBSD__) +# include +# else +# include +# endif extern int openpty(int *, int *, char *, struct termios *, struct winsize *); # else /* Mac OS X (and some BSDs) define `openpty` in */