fix compilation with gc 7.1
authorChris K. Jester-Young <cky944@gmail.com>
Thu, 8 Dec 2011 20:13:30 +0000 (21:13 +0100)
committerAndy Wingo <wingo@pobox.com>
Thu, 8 Dec 2011 20:14:06 +0000 (21:14 +0100)
commit4eb286127c41e67eb90ef1b69f61f613bcd830b2
tree579434eac5a642346037d10035d959d419ca75d1
parente7b2efd582a6146cd9e9c82a905b3e87bb86d046
fix compilation with gc 7.1

* configure.ac: Add checks for GC_gcollect_and_unmap and
  GC_get_unmapped_bytes.
* libguile/gc-malloc.c (scm_realloc): GC_gcollect() if we don't have
  GC_gcollect_and_unmap.
* libguile/gc.c (GC_get_heap_usage_safe): Likewise, don't
  GC_get_unmapped_bytes if the function doesn't exist.
configure.ac
libguile/gc-malloc.c
libguile/gc.c