forked from github/abduco
Fallback to TTYNAME_MAX if TTY_NAME_MAX is not defined
This commit is contained in:
parent
4ae63d86d6
commit
8c81939b9d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue