]> git.eshelyaron.com Git - emacs.git/commitdiff
Include gc.h.
authorDave Love <fx@gnu.org>
Wed, 11 Jun 2003 11:44:45 +0000 (11:44 +0000)
committerDave Love <fx@gnu.org>
Wed, 11 Jun 2003 11:44:45 +0000 (11:44 +0000)
(make_terminal_frame): Use XGC_MALLOC.

src/frame.c

index 90741c391978540c71cb1d98cedf41e99a1e1da5..4d2f40dc40b95ac08840874b6ac084c58351e488 100644 (file)
@@ -22,6 +22,9 @@ Boston, MA 02111-1307, USA.  */
 #include <config.h>
 
 #include <stdio.h>
+#ifdef BOEHM_GC
+#include <gc.h>
+#endif
 #include "lisp.h"
 #include "charset.h"
 #ifdef HAVE_X_WINDOWS
@@ -485,7 +488,7 @@ make_terminal_frame ()
 #ifdef MULTI_KBOARD
   if (!initial_kboard)
     {
-      initial_kboard = (KBOARD *) xmalloc (sizeof (KBOARD));
+      initial_kboard = (KBOARD *) XGC_MALLOC (sizeof (KBOARD));
       init_kboard (initial_kboard);
       initial_kboard->next_kboard = all_kboards;
       all_kboards = initial_kboard;