Skip to content

Commit e8ba890

Browse files
devnexenkocsismate
authored andcommitted
proc_open FreeBSD build fix
On this platform the needed header is different. Closes GH-5623
1 parent b371843 commit e8ba890

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ext/standard/proc_open.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,13 @@
4747
# if HAVE_PTY_H
4848
# include <pty.h>
4949
# else
50-
/* Mac OS X defines `openpty` in <util.h> */
51-
# include <util.h>
50+
# if defined(__FreeBSD__)
51+
/* FreeBSD defines `openpty` in <libutil.h> */
52+
# include <libutil.h>
53+
# else
54+
/* Mac OS X and some BSD defines `openpty` in <util.h> */
55+
# include <util.h>
56+
# endif
5257
# endif
5358
#endif
5459

0 commit comments

Comments
 (0)