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;