diff options
author | Andy Wingo <wingo@pobox.com> | 2011-12-22 09:54:24 -0500 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-12-22 09:54:24 -0500 |
commit | 34cf38c3a2eb143d982aa14e76888098aea468b2 (patch) | |
tree | 9122a88920fb8c5fdc9639671715b1c3d48302b1 | |
parent | e0a8221dcf0c6592a968a10e511a69bb05728753 (diff) |
stdlib.h, not malloc.h
* configure.ac: Remove check for malloc.h.
* libguile/gc-malloc.c:
* libguile/gc.c:
* libguile/mallocs.c:
* libguile/smob.c: Use stdlib instead of malloc.h.
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | libguile/gc-malloc.c | 5 | ||||
-rw-r--r-- | libguile/gc.c | 5 | ||||
-rw-r--r-- | libguile/mallocs.c | 5 | ||||
-rw-r--r-- | libguile/smob.c | 5 |
5 files changed, 6 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac index 0cfe96165..bf9ecdf9d 100644 --- a/configure.ac +++ b/configure.ac @@ -655,7 +655,7 @@ AC_SUBST([SCM_I_GSC_HAVE_STRUCT_DIRENT64]) # langinfo.h, nl_types.h - SuS v2 # sched.h - missing on MinGW # -AC_CHECK_HEADERS([complex.h fenv.h io.h libc.h limits.h malloc.h memory.h process.h string.h \ +AC_CHECK_HEADERS([complex.h fenv.h io.h libc.h limits.h memory.h process.h string.h \ regex.h rxposix.h rx/rxposix.h sys/dir.h sys/ioctl.h sys/select.h \ sys/time.h sys/timeb.h sys/times.h sys/stdtypes.h sys/types.h \ sys/utime.h time.h unistd.h utime.h pwd.h grp.h sys/utsname.h \ diff --git a/libguile/gc-malloc.c b/libguile/gc-malloc.c index b7781f3e7..de8e9e2b3 100644 --- a/libguile/gc-malloc.c +++ b/libguile/gc-malloc.c @@ -26,6 +26,7 @@ #include <stdio.h> #include <errno.h> #include <string.h> +#include <stdlib.h> #ifdef __ia64__ #include <ucontext.h> @@ -58,10 +59,6 @@ extern unsigned long * __libc_ia64_register_backing_store_base; #include "libguile/debug-malloc.h" #endif -#ifdef HAVE_MALLOC_H -#include <malloc.h> -#endif - #ifdef HAVE_UNISTD_H #include <unistd.h> #endif diff --git a/libguile/gc.c b/libguile/gc.c index 33b034040..7816801e1 100644 --- a/libguile/gc.c +++ b/libguile/gc.c @@ -29,6 +29,7 @@ #include <stdio.h> #include <errno.h> #include <string.h> +#include <stdlib.h> #include <math.h> #ifdef __ia64__ @@ -67,10 +68,6 @@ extern unsigned long * __libc_ia64_register_backing_store_base; #include "libguile/debug-malloc.h" #endif -#ifdef HAVE_MALLOC_H -#include <malloc.h> -#endif - #ifdef HAVE_UNISTD_H #include <unistd.h> #endif diff --git a/libguile/mallocs.c b/libguile/mallocs.c index 6a366aeea..05c6a8529 100644 --- a/libguile/mallocs.c +++ b/libguile/mallocs.c @@ -24,15 +24,14 @@ # include <config.h> #endif +#include <stdlib.h> + #include "libguile/_scm.h" #include "libguile/ports.h" #include "libguile/smob.h" #include "libguile/mallocs.h" -#ifdef HAVE_MALLOC_H -#include <malloc.h> -#endif #ifdef HAVE_UNISTD_H #include <unistd.h> #endif diff --git a/libguile/smob.c b/libguile/smob.c index c414913fc..8b038f5de 100644 --- a/libguile/smob.c +++ b/libguile/smob.c @@ -23,6 +23,7 @@ #endif #include <stdio.h> +#include <stdlib.h> #include <errno.h> #include "libguile/_scm.h" @@ -33,10 +34,6 @@ #include "libguile/objcodes.h" #include "libguile/programs.h" -#ifdef HAVE_MALLOC_H -#include <malloc.h> -#endif - #include "libguile/smob.h" #include "libguile/bdw-gc.h" |