From 9420758127dbcf4de83d3f4d9354e292c015f1ba Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 20 Apr 2017 19:09:07 +0100 Subject: getptmfd() and fdforkpty() compat. --- compat.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'compat.h') diff --git a/compat.h b/compat.h index 2b666b1f..d38e6f0c 100644 --- a/compat.h +++ b/compat.h @@ -18,6 +18,7 @@ #define COMPAT_H #include +#include #include #include @@ -283,9 +284,15 @@ int b64_ntop(const char *, size_t, char *, size_t); int b64_pton(const char *, u_char *, size_t); #endif +#ifndef HAVE_FDFORKPTY +/* fdforkpty.c */ +int getptmfd(void); +pid_t fdforkpty(int, int *, char *, struct termios *, + struct winsize *); +#endif + #ifndef HAVE_FORKPTY /* forkpty.c */ -#include pid_t forkpty(int *, char *, struct termios *, struct winsize *); #endif -- cgit v1.2.3