summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2017-04-20 19:09:07 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2017-04-20 19:09:07 +0100
commit9420758127dbcf4de83d3f4d9354e292c015f1ba (patch)
tree729437eb871932ef73efb0b6cc7abe0bb8543126 /compat.h
parent7934e7a6b518ec96d95fc4e9303d6fdafcac54bc (diff)
getptmfd() and fdforkpty() compat.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h9
1 files changed, 8 insertions, 1 deletions
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 <sys/types.h>
+#include <sys/ioctl.h>
#include <sys/uio.h>
#include <limits.h>
@@ -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 <sys/ioctl.h>
pid_t forkpty(int *, char *, struct termios *, struct winsize *);
#endif