From 8c81939b9df4465fc18c62ba3c8772d9641c01c3 Mon Sep 17 00:00:00 2001 From: Bergman Andrey Date: Tue, 8 Jul 2014 10:18:18 +0200 Subject: [PATCH] Fallback to TTYNAME_MAX if TTY_NAME_MAX is not defined --- forkpty-sunos.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/forkpty-sunos.c b/forkpty-sunos.c index cd59522..73c8efb 100644 --- a/forkpty-sunos.c +++ b/forkpty-sunos.c @@ -22,6 +22,10 @@ #include #include +#ifndef TTY_NAME_MAX +#define TTY_NAME_MAX TTYNAME_MAX +#endif + pid_t forkpty(int *master, char *name, struct termios *tio, struct winsize *ws) { int slave;