Partial fix for bug #32937, Bogdan Nicula.

2005-12-27  Matthias Clasen  <mclasen@redhat.com>

        Partial fix for bug #32937, Bogdan Nicula.

        * configure.in: Check for malloc.h
        * glib/gslice.c: Don't include malloc.h unconditionally.
This commit is contained in:
Matthias Clasen 2005-12-27 19:15:12 +00:00 committed by Matthias Clasen
parent 4a94f2d332
commit d947ad7167
5 changed files with 26 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2005-12-27 Matthias Clasen <mclasen@redhat.com>
Partial fix for bug #32937, Bogdan Nicula.
* configure.in: Check for malloc.h
* glib/gslice.c: Don't include malloc.h unconditionally.
2005-12-27 Manish Singh <yosh@gimp.org>
* tests/run-collate-tests.sh: export LC_COLLATE so it takes.

View File

@ -1,3 +1,10 @@
2005-12-27 Matthias Clasen <mclasen@redhat.com>
Partial fix for bug #32937, Bogdan Nicula.
* configure.in: Check for malloc.h
* glib/gslice.c: Don't include malloc.h unconditionally.
2005-12-27 Manish Singh <yosh@gimp.org>
* tests/run-collate-tests.sh: export LC_COLLATE so it takes.

View File

@ -1,3 +1,10 @@
2005-12-27 Matthias Clasen <mclasen@redhat.com>
Partial fix for bug #32937, Bogdan Nicula.
* configure.in: Check for malloc.h
* glib/gslice.c: Don't include malloc.h unconditionally.
2005-12-27 Manish Singh <yosh@gimp.org>
* tests/run-collate-tests.sh: export LC_COLLATE so it takes.

View File

@ -789,8 +789,9 @@ AM_CONDITIONAL(HAVE_GNUC_VISIBILITY, [test x$g_have_gnuc_visibility = xyes])
AC_C_BIGENDIAN
# check for header files
AC_CHECK_HEADERS([dirent.h float.h limits.h pwd.h sys/param.h sys/poll.h sys/select.h sys/types.h])
AC_CHECK_HEADERS([sys/time.h sys/times.h sys/wait.h unistd.h values.h stdint.h sched.h])
AC_CHECK_HEADERS([dirent.h float.h limits.h pwd.h sys/param.h sys/poll.h])
AC_CHECK_HEADERS([sys/time.h sys/times.h sys/wait.h unistd.h values.h])
AC_CHECK_HEADERS([sys/select.h sys/types.h stdint.h sched.h malloc.h])
# Checks for libcharset
jm_LANGINFO_CODESET

View File

@ -993,7 +993,9 @@ slab_allocator_free_chunk (gsize chunk_size,
}
/* --- memalign implementation --- */
#ifdef HAVE_MALLOC_H
#include <malloc.h> /* memalign() */
#endif
/* from config.h:
* define HAVE_POSIX_MEMALIGN 1 // if free(posix_memalign(3)) works, <stdlib.h>