1
0
mirror of https://github.com/php/php-src.git synced 2026-04-02 21:52:36 +02:00

proc_open FreeBSD build fix

On this platform the needed header is different.

Closes GH-5623
This commit is contained in:
David Carlier
2020-05-25 15:31:34 +01:00
committed by Máté Kocsis
parent b3718430de
commit e8ba8908a9

View File

@@ -47,8 +47,13 @@
# if HAVE_PTY_H
# include <pty.h>
# else
/* Mac OS X defines `openpty` in <util.h> */
# include <util.h>
# if defined(__FreeBSD__)
/* FreeBSD defines `openpty` in <libutil.h> */
# include <libutil.h>
# else
/* Mac OS X and some BSD defines `openpty` in <util.h> */
# include <util.h>
# endif
# endif
#endif