Skip to content

Commit 3e06e00

Browse files
committed
Build fix for newer versions of NetBSD.
its libutil contains newer conflicting apis as estrdup, emalloc.
1 parent 0bff4e5 commit 3e06e00

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/standard/proc_open.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
# elif defined(__FreeBSD__)
4949
/* FreeBSD defines `openpty` in <libutil.h> */
5050
# include <libutil.h>
51+
# elif defined(__NetBSD__)
52+
# include <sys/termios.h>
53+
extern int openpty(int *, int *, char *, struct termios *, struct winsize *);
5154
# else
5255
/* Mac OS X (and some BSDs) define `openpty` in <util.h> */
5356
# include <util.h>

0 commit comments

Comments
 (0)