diff options
author | David Carlier <devnexen@gmail.com> | 2020-05-27 23:26:13 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-05-28 14:31:04 +0200 |
commit | 6dca024a09549e10bab81aebad9972ab4586646f (patch) | |
tree | 208cf1cd5a9cb1beb44c5f81e65f6bdda25a32e9 | |
parent | 70b2aa7fb858670687bcfd35f8cc2649294d52e9 (diff) | |
download | php-git-6dca024a09549e10bab81aebad9972ab4586646f.tar.gz |
Build fix for newer versions of NetBSD.
its libutil contains newer conflicting apis as estrdup, emalloc.
Closes GH-5635
-rw-r--r-- | ext/standard/proc_open.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index 1df6246d38..0e374240b8 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -48,6 +48,10 @@ # elif defined(__FreeBSD__) /* FreeBSD defines `openpty` in <libutil.h> */ # include <libutil.h> +# elif defined(__NetBSD__) +/* On recent NetBSD releases the emalloc, estrdup ... calls had been introduced in libutil */ +# include <sys/termios.h> +extern int openpty(int *, int *, char *, struct termios *, struct winsize *); # else /* Mac OS X (and some BSDs) define `openpty` in <util.h> */ # include <util.h> |