Partial fix for bug #32937, Bogdan Nicula.
authorMatthias Clasen <mclasen@redhat.com>
Tue, 27 Dec 2005 19:15:12 +0000 (19:15 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 27 Dec 2005 19:15:12 +0000 (19:15 +0000)
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.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
configure.in
glib/gslice.c

index 76c1160..db038ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 76c1160..db038ee 100644 (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.
index 76c1160..db038ee 100644 (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.
index 04d9b36..b4fae1b 100644 (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
index 1061589..fdfa151 100644 (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>