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
No known key found for this signature in database
GPG key ID: FD055E41728BF310

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