1 there is no test to define HAVE_GRANTPT_PTY_ISATTY and
2 _POSIX_SOURCE is app-defined not system
3 This fix ptys and launching xterm
5 Upstream-Status: Pending
7 Suggested By Rich Felker
8 Signed-off-by: Khem Raj <raj.khem@gmail.com>
12 @@ -2892,7 +2892,7 @@ get_pty(int *pty, char *from GCC_UNUSED)
16 -#elif defined(HAVE_POSIX_OPENPT) && defined(HAVE_PTSNAME) && defined(HAVE_GRANTPT_PTY_ISATTY)
17 +#elif defined(HAVE_POSIX_OPENPT) && defined(HAVE_PTSNAME)
18 if ((*pty = posix_openpt(O_RDWR)) >= 0) {
19 char *name = ptsname(*pty);
21 @@ -4040,7 +4040,7 @@ spawnXTerm(XtermWidget xw, unsigned line
23 * now in child process
25 -#if defined(_POSIX_SOURCE) || defined(SVR4) || defined(__convex__) || defined(__SCO__) || defined(__QNX__)
26 +#if defined(_POSIX_VERSION) || defined(SVR4) || defined(__convex__) || defined(__SCO__) || defined(__QNX__)
27 int pgrp = setsid(); /* variable may not be used... */