SHA256
1
0
forked from pool/xemacs
xemacs/xemacs-ptmx.dif

32 lines
776 B
Plaintext

diff -ru xemacs-21.5.20.orig/src/process-unix.c xemacs-21.5.20/src/process-unix.c
--- xemacs-21.5.20.orig/src/process-unix.c 2005-02-04 05:06:34.000000000 +0100
+++ xemacs-21.5.20/src/process-unix.c 2005-05-11 17:41:30.000000000 +0200
@@ -236,12 +236,6 @@
"/dev/ptmx_bsd" /* Tru64 */
};
-#ifdef HAVE_GETPT /* glibc */
- master_fd = getpt ();
- if (master_fd >= 0)
- goto have_master;
-#endif /* HAVE_GETPT */
-
#if defined(HAVE_OPENPTY) /* BSD, Tru64, glibc */
{
@@ -275,6 +269,13 @@
goto have_slave_name;
#endif /* HAVE__GETPTY */
+#ifdef HAVE_GETPT /* glibc */
+ master_fd = getpt ();
+ if (master_fd >= 0)
+ goto have_master;
+#endif /* HAVE_GETPT */
+
+
/* Master clone devices are available on most systems */
{
int i;