1 --- expect-5.26/pty_termios.c Mon Mar 16 19:53:41 1998
2 +++ expect-5.26.orig/pty_termios.c Thu Oct 8 09:51:36 1998
6 #if defined(HAVE__GETPTY) || defined(HAVE_PTC_PTS) || defined(HAVE_PTMX)
7 +# if ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1))
10 static char *slave_name;
11 +# endif /* GNU libc-2.1 */
14 #if defined(HAVE_GETPTY)
17 if ((master = open("/dev/ptmx", O_RDWR)) == -1) return(-1);
19 - if ((slave_name = (char *)ptsname(master)) == NULL) {
20 + if (slave_name == NULL) {
23 } else if (grantpt(master)) {