Check for mallinfo.

2004-09-21  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Check for mallinfo.

	* tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO
	is defined.  (#153168, Darren Creutz)
This commit is contained in:
Matthias Clasen 2004-09-21 18:03:57 +00:00 committed by Matthias Clasen
parent ea9d3fa5fe
commit 6f08d4cf61
6 changed files with 42 additions and 0 deletions

View File

@ -1,5 +1,10 @@
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* configure.in: Check for mallinfo.
* tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO
is defined. (#153168, Darren Creutz)
* gtk/gtkactiongroup.c: Fix typos in signal docs. (#153224,
John Finlay)

View File

@ -1,5 +1,10 @@
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* configure.in: Check for mallinfo.
* tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO
is defined. (#153168, Darren Creutz)
* gtk/gtkactiongroup.c: Fix typos in signal docs. (#153224,
John Finlay)

View File

@ -1,5 +1,10 @@
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* configure.in: Check for mallinfo.
* tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO
is defined. (#153168, Darren Creutz)
* gtk/gtkactiongroup.c: Fix typos in signal docs. (#153224,
John Finlay)

View File

@ -1,5 +1,10 @@
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* configure.in: Check for mallinfo.
* tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO
is defined. (#153168, Darren Creutz)
* gtk/gtkactiongroup.c: Fix typos in signal docs. (#153224,
John Finlay)

View File

@ -571,6 +571,7 @@ AC_C_CONST
AC_TYPE_SIGNAL
AC_FUNC_MMAP
AC_CHECK_FUNCS(mallinfo)
AC_CHECK_FUNCS(getresuid)
AC_TYPE_UID_T

View File

@ -1,4 +1,25 @@
/* testtreemodel.c
* Copyright (C) 2004 Red Hat, Inc., Matthias Clasen <mclasen@redhat.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_MALLINFO
#include <malloc.h>
#endif
#include <gtk/gtk.h>
static gint repeats = 2;