[Gc] Compilation fix for 6.3 on older MacOSX

Stefan Ring e9725446 at student.tuwien.ac.at
Sun Jul 11 04:40:37 PDT 2004


This would not compile with cc 2.95.2.

--- darwin_stop_world.c	2004/07/10 15:34:06	1.2
+++ darwin_stop_world.c	2004/07/11 11:37:45	1.3
@@ -324,6 +324,8 @@
   kern_return_t kern_result;
   thread_act_array_t act_list;
   mach_msg_type_number_t listcount;
+  struct thread_basic_info info;
+  mach_msg_type_number_t outCount = THREAD_INFO_MAX;

 #   if DEBUG_THREADS
       GC_printf0("World starting\n");
@@ -350,8 +352,6 @@
 #             endif
 	      continue;
 	    }
-	    struct thread_basic_info info;
-	    mach_msg_type_number_t outCount = THREAD_INFO_MAX;
 	    kern_result = thread_info(thread, THREAD_BASIC_INFO,
 				      (thread_info_t)&info, &outCount);
 	    if(kern_result != KERN_SUCCESS) ABORT("thread_info failed");


More information about the Gc mailing list