diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c index ac92678c8e0..1bd8b3ae64d 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -187,6 +187,7 @@ extern Lisp_Object QCfilter; | |||
| 187 | #include "syswait.h" | 187 | #include "syswait.h" |
| 188 | 188 | ||
| 189 | extern void set_waiting_for_input P_ ((EMACS_TIME *)); | 189 | extern void set_waiting_for_input P_ ((EMACS_TIME *)); |
| 190 | extern char *get_operating_system_release (); | ||
| 190 | 191 | ||
| 191 | #ifndef USE_CRT_DLL | 192 | #ifndef USE_CRT_DLL |
| 192 | extern int errno; | 193 | extern int errno; |
| @@ -6702,6 +6703,19 @@ init_process () | |||
| 6702 | Fprovide (intern ("make-network-process"), subfeatures); | 6703 | Fprovide (intern ("make-network-process"), subfeatures); |
| 6703 | } | 6704 | } |
| 6704 | #endif /* HAVE_SOCKETS */ | 6705 | #endif /* HAVE_SOCKETS */ |
| 6706 | |||
| 6707 | #ifdef DARWIN | ||
| 6708 | /* PTYs are broken on Darwin < 6, but are sometimes useful for interactive | ||
| 6709 | processes. As such, we only change the default value. */ | ||
| 6710 | if (initialized) | ||
| 6711 | { | ||
| 6712 | char *release = get_operating_system_release(); | ||
| 6713 | if (!release || !release[0] || (release[0] < MIN_PTY_KERNEL_VERSION | ||
| 6714 | && release[1] == '.')) { | ||
| 6715 | Vprocess_connection_type = Qnil; | ||
| 6716 | } | ||
| 6717 | } | ||
| 6718 | #endif | ||
| 6705 | } | 6719 | } |
| 6706 | 6720 | ||
| 6707 | void | 6721 | void |