]> git.eshelyaron.com Git - emacs.git/commitdiff
* emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
authorJan Djärv <jan.h.d@swipnet.se>
Tue, 7 Dec 2004 21:03:04 +0000 (21:03 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Tue, 7 Dec 2004 21:03:04 +0000 (21:03 +0000)
reset_malloc_hooks.

* keyboard.c (handle_async_input, input_available_signal): Add
! defined (SYSTEM_MALLOC) around thread code.

src/ChangeLog
src/emacs.c
src/keyboard.c

index 6b3a832e8408adc6ba34512e2ede5188eff676b4..28030aef0e33fa5f214bd767ff7d43d5d8ef4c0a 100644 (file)
@@ -1,5 +1,11 @@
 2004-12-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
 
+       * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
+       reset_malloc_hooks.
+
+       * keyboard.c (handle_async_input, input_available_signal): Add
+       ! defined (SYSTEM_MALLOC) around thread code.
+
        * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
 
 2004-12-07  Stefan  <monnier@iro.umontreal.ca>
index b6b7f986e94b569bee977c3203593013eee71bd3..8e2443e8f1f5fb567d4362c639345a9b0a60ddef 100644 (file)
@@ -2238,7 +2238,7 @@ You must run Emacs in batch mode in order to dump it.  */)
   memory_warnings (my_edata, malloc_warning);
 #endif /* not WINDOWSNT */
 #endif
-#ifdef HAVE_GTK_AND_PTHREAD
+#if ! defined (SYSTEM_MALLOC) && defined (HAVE_GTK_AND_PTHREAD)
   /* Pthread may call malloc before main, and then we will get an endless
      loop, because pthread_self (see alloc.c) calls malloc the first time
      it is called on some systems.  */
index 3cfc165208477a449f0f4aadcb44ed5f041c685d..19973edf33d83265af12292820fab114552dc2ac 100644 (file)
@@ -6780,7 +6780,7 @@ handle_async_input ()
 #ifdef BSD4_1
   extern int select_alarmed;
 #endif
-#ifdef HAVE_GTK_AND_PTHREAD
+#if ! defined (SYSTEM_MALLOC) && defined (HAVE_GTK_AND_PTHREAD)
   extern pthread_t main_thread;
   if (pthread_self () != main_thread)
     {
@@ -6826,7 +6826,7 @@ input_available_signal (signo)
 {
   /* Must preserve main program's value of errno.  */
   int old_errno = errno;
-#ifdef HAVE_GTK_AND_PTHREAD
+#if ! defined (SYSTEM_MALLOC) && defined (HAVE_GTK_AND_PTHREAD)
   extern pthread_t main_thread;
   if (pthread_self () != main_thread)
     {