mirror of
https://github.com/php/php-src.git
synced 2026-04-01 21:22:13 +02:00
Build fix for newer versions of NetBSD.
its libutil contains newer conflicting apis as estrdup, emalloc. Closes GH-5635
This commit is contained in:
committed by
Máté Kocsis
parent
70b2aa7fb8
commit
6dca024a09
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user