changeset 47032:4e4bf31455d6

2002-08-25 Andrew Choi <akochoi@shaw.ca> * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is defined instead of MAC_OSX. * s/darwin.h (select): Define select to sys_select only if HAVE_CARBON is defined.
author Andrew Choi <akochoi@shaw.ca>
date Sun, 25 Aug 2002 17:15:26 +0000
parents 56242900e171
children f6d6e1b3e7b7
files src/ChangeLog src/emacs.c src/s/darwin.h
diffstat 3 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Aug 25 16:44:51 2002 +0000
+++ b/src/ChangeLog	Sun Aug 25 17:15:26 2002 +0000
@@ -1,7 +1,11 @@
 2002-08-25  Andrew Choi  <akochoi@shaw.ca>
 
-	* s/darwin.h (HAVE_WORKING_VFORK): #undef it.  Define vfork to
-	fork.
+	* emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
+	defined instead of MAC_OSX.
+
+	* s/darwin.h (select): Define select to sys_select only if
+	HAVE_CARBON is defined.
+	(HAVE_WORKING_VFORK): #undef it.  Define vfork to fork.
 
 	* macterm.c (XTread_socket): Remove code to call
 	SendEventToEventTarget for keys with command modifiers when
--- a/src/emacs.c	Sun Aug 25 16:44:51 2002 +0000
+++ b/src/emacs.c	Sun Aug 25 17:15:26 2002 +0000
@@ -794,7 +794,7 @@
     run_time_remap (argv[0]);
 #endif
 
-#ifdef MAC_OSX
+#ifdef HAVE_CARBON
   if (!initialized)
     unexec_init_emacs_zone ();
 #endif
--- a/src/s/darwin.h	Sun Aug 25 16:44:51 2002 +0000
+++ b/src/s/darwin.h	Sun Aug 25 17:15:26 2002 +0000
@@ -312,6 +312,6 @@
 /* Reroute calls to SELECT to the version defined in mac.c to fix the
    problem of Emacs requiring an extra return to be typed to start
    working when started from the command line.  */
-#if defined (emacs) || defined (temacs)
+#if defined (HAVE_CARBON) && (defined (emacs) || defined (temacs))
 #define select sys_select
 #endif