abduco

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 8c81939b9df4465fc18c62ba3c8772d9641c01c3
parent 4ae63d86d62f58fa083353ef8ef2f6d07e2b0160
Author: Bergman Andrey <vkni@yandex.ru>
Date:   Tue,  8 Jul 2014 10:18:18 +0200

Fallback to TTYNAME_MAX if TTY_NAME_MAX is not defined

Diffstat:
forkpty-sunos.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/forkpty-sunos.c b/forkpty-sunos.c @@ -22,6 +22,10 @@ #include <stropts.h> #include <unistd.h> +#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;