]>
Commit | Line | Data |
---|---|---|
70972c6d AM |
1 | diff -ru xemacs-21.5.20.orig/src/process-unix.c xemacs-21.5.20/src/process-unix.c |
2 | --- xemacs-21.5.20.orig/src/process-unix.c 2005-02-04 05:06:34.000000000 +0100 | |
3 | +++ xemacs-21.5.20/src/process-unix.c 2005-05-11 17:41:30.000000000 +0200 | |
4 | @@ -236,12 +236,6 @@ | |
5 | "/dev/ptmx_bsd" /* Tru64 */ | |
6 | }; | |
7 | ||
8 | -#ifdef HAVE_GETPT /* glibc */ | |
9 | - master_fd = getpt (); | |
10 | - if (master_fd >= 0) | |
11 | - goto have_master; | |
12 | -#endif /* HAVE_GETPT */ | |
13 | - | |
14 | ||
15 | #if defined(HAVE_OPENPTY) /* BSD, Tru64, glibc */ | |
16 | { | |
17 | @@ -275,6 +269,13 @@ | |
18 | goto have_slave_name; | |
19 | #endif /* HAVE__GETPTY */ | |
20 | ||
21 | +#ifdef HAVE_GETPT /* glibc */ | |
22 | + master_fd = getpt (); | |
23 | + if (master_fd >= 0) | |
24 | + goto have_master; | |
25 | +#endif /* HAVE_GETPT */ | |
26 | + | |
27 | + | |
28 | /* Master clone devices are available on most systems */ | |
29 | { | |
30 | int i; | |
31 |