aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
authorSteven Tamm2005-01-20 18:13:48 +0000
committerSteven Tamm2005-01-20 18:13:48 +0000
commita15252fdfb18b102d25c3c90e866036073a1c3de (patch)
tree4526fc8bbd1572becbf0ce4b595380353ddd31a5 /src/s
parentb059de99a9a3ad624d9652287ca24826609e0f37 (diff)
downloademacs-a15252fdfb18b102d25c3c90e866036073a1c3de.tar.gz
emacs-a15252fdfb18b102d25c3c90e866036073a1c3de.zip
* editfns.c (Voperating_system_release): Added.
(init_editfns): Assign new variable operating-system-release based on call to uname if available. (get_operating_system_release): Added function to allow c-level access to operating system release. * config.h: Regenerated. * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less. (MIN_PTY_KERNEL_VERSION): Defined minimum kernel version for using ptys as '7'. * term/mac-win.el (process-connection-type): Removed. Controlled now by s/darwin.h:PTY_ITERATION.
Diffstat (limited to 'src/s')
-rw-r--r--src/s/darwin.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/s/darwin.h b/src/s/darwin.h
index 9f78405a43c..d8da3e3174c 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -107,6 +107,22 @@ Boston, MA 02111-1307, USA. */
107 107
108#define HAVE_PTYS 108#define HAVE_PTYS
109 109
110
111/*
112 * PTYs only work correctly on Darwin 7 or higher. So make PTY_ITERATION
113 * Test the operating system release and only allow PTYs if it is greater
114 * than 7.
115 */
116#define MIN_PTY_KERNEL_VERSION '7'
117#define PTY_ITERATION \
118 char *release = get_operating_system_release(); \
119 if (!release || !release[0] || (release[0] < MIN_PTY_KERNEL_VERSION \
120 && release[1] == '.')) \
121 return -1; \
122 for (c = FIRST_PTY_LETTER; c <= 'z'; c++) \
123 for (i = 0; i < 16; i++)
124
125
110/* 126/*
111 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate 127 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
112 * The 4.2 opendir, etc., library functions. 128 * The 4.2 opendir, etc., library functions.