--- rxvt-unicode/src/ptytty.C 2006/01/11 20:46:46 1.32 +++ rxvt-unicode/src/ptytty.C 2006/01/11 23:08:54 1.33 @@ -90,11 +90,11 @@ #endif #if defined(HAVE_GRANTPT) && defined(HAVE_UNLOCKPT) -# if defined(PTYS_ARE_GETPT) || defined(PTYS_ARE_PTMX) +# if defined(PTYS_ARE_POSIX) || defined(PTYS_ARE_PTMX) { -# ifdef PTYS_ARE_GETPT - pfd = getpt (); +# ifdef PTYS_ARE_POSIX + pfd = posix_openpt (O_RDWR); # else pfd = open ("/dev/ptmx", O_RDWR | O_NOCTTY, 0); # endif