comparison src/s/darwin.h @ 59658:45074d913d23

* 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.
author Steven Tamm <steventamm@mac.com>
date Thu, 20 Jan 2005 18:13:48 +0000
parents 95d38c47c806
children 007a1a6d92de
comparison
equal deleted inserted replaced
59657:f3aa25eacdb3 59658:45074d913d23
105 * Define HAVE_PTYS if the system supports pty devices. 105 * Define HAVE_PTYS if the system supports pty devices.
106 */ 106 */
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.
113 */ 129 */
114 130