Fallback to TTYNAME_MAX if TTY_NAME_MAX is not defined

This commit is contained in:
Bergman Andrey 2014-07-08 10:18:18 +02:00 committed by Marc André Tanner
parent 4ae63d86d6
commit 8c81939b9d
1 changed files with 4 additions and 0 deletions

View File

@ -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;