From e8ba8908a90aa623abf9f16ebf60d2703754c522 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Mon, 25 May 2020 15:31:34 +0100 Subject: [PATCH] proc_open FreeBSD build fix On this platform the needed header is different. Closes GH-5623 --- ext/standard/proc_open.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index e463e251571..94099b71018 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -47,8 +47,13 @@ # if HAVE_PTY_H # include # else -/* Mac OS X defines `openpty` in */ -# include +# if defined(__FreeBSD__) +/* FreeBSD defines `openpty` in */ +# include +# else +/* Mac OS X and some BSD defines `openpty` in */ +# include +# endif # endif #endif