aboutsummaryrefslogtreecommitdiffstats
path: root/src/s/darwin.h
diff options
context:
space:
mode:
authorSteven Tamm <[email protected]>2005-01-22 15:54:04 +0000
committerSteven Tamm <[email protected]>2005-01-22 15:54:04 +0000
commitd9e7c622607bc74214ad5f9aa0eaa64d7a4eba55 (patch)
treea0d4b82e7cdc64801379e5ae3431b9eff6785e73 /src/s/darwin.h
parent3d4d788a38060b1bb2435a57876d4065eb005b5b (diff)
* s/darwin.h: Removed PTY_ITERATION from here.
(DARWIN): Defined. * process.c (init_process): Default process-connection-type to nil on darwin 6 or less, t if it is 7 or higher. This way the broken pty behavior is still allowed on darwin 6 for interactive processes for people that know what they are doing.
Diffstat (limited to 'src/s/darwin.h')
-rw-r--r--src/s/darwin.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/s/darwin.h b/src/s/darwin.h
index d8da3e3174..5b162ea08a 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -37,6 +37,10 @@ Boston, MA 02111-1307, USA. */
#define BSD_SYSTEM
/* #define VMS */
+#ifndef DARWIN
+#define DARWIN 1
+#endif
+
/* MAC_OS is used to conditionally compile code common to both MAC_OS8
and MAC_OSX. */
#ifdef MAC_OSX
@@ -103,25 +107,17 @@ Boston, MA 02111-1307, USA. */
/*
* Define HAVE_PTYS if the system supports pty devices.
+ * Note: PTYs are broken on darwin <6. Use at your own risk.
*/
#define HAVE_PTYS
-
-/*
- * PTYs only work correctly on Darwin 7 or higher. So make PTY_ITERATION
- * Test the operating system release and only allow PTYs if it is greater
- * than 7.
+/**
+ * PTYs only work correctly on Darwin 7 or higher. So make the
+ * default for process-connection-type dependent on the kernel
+ * version.
*/
#define MIN_PTY_KERNEL_VERSION '7'
-#define PTY_ITERATION \
- char *release = get_operating_system_release(); \
- if (!release || !release[0] || (release[0] < MIN_PTY_KERNEL_VERSION \
- && release[1] == '.')) \
- return -1; \
- for (c = FIRST_PTY_LETTER; c <= 'z'; c++) \
- for (i = 0; i < 16; i++)
-
/*
* Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate