diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index e4a38851e0a..1df6246d38a 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -39,21 +39,18 @@ /* This symbol is defined in ext/standard/config.m4. * Essentially, it is set if you HAVE_FORK || PHP_WIN32 * Other platforms may modify that configure check and add suitable #ifdefs - * around the alternate code. - * */ + * around the alternate code. */ #ifdef PHP_CAN_SUPPORT_PROC_OPEN #if HAVE_OPENPTY # if HAVE_PTY_H # include -# else -# if defined(__FreeBSD__) +# elif defined(__FreeBSD__) /* FreeBSD defines `openpty` in */ -# include -# else -/* Mac OS X and some BSD defines `openpty` in */ -# include -# endif +# include +# else +/* Mac OS X (and some BSDs) define `openpty` in */ +# include # endif #endif