--- rxvt-unicode/src/ptytty.C 2008/05/05 16:51:52 1.69 +++ rxvt-unicode/src/ptytty.C 2010/07/21 08:46:13 1.70 @@ -25,7 +25,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *---------------------------------------------------------------------*/ -#include "../config.h" +#include "config.h" #include "ptytty.h" @@ -136,38 +136,6 @@ return pfd; } - return -1; - } - -#elif defined(HAVE_DEV_PTC) - - static int - get_pty (int *fd_tty, char **ttydev) - { - int pfd; - - if ((pfd = open ("/dev/ptc", O_RDWR | O_NOCTTY, 0)) >= 0) - { - *ttydev = strdup (ttyname (pfd)); - return pfd; - } - - return -1; - } - -#elif defined(HAVE_DEV_CLONE) - - static int - get_pty (int *fd_tty, char **ttydev) - { - int pfd; - - if ((pfd = open ("/dev/ptym/clone", O_RDWR | O_NOCTTY, 0)) >= 0) - { - *ttydev = strdup (ptsname (pfd)); - return pfd; - } - return -1; }