From 66539a737d6e1fe3aa6ce27f9a2548f9e7f47e3f Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 31 Dec 2000 19:13:04 +0000 Subject: Update. * include/libc-internal.h: Add prototype for __libc_freeres. * malloc/mtrace.c: Likewise. * malloc/set-freeres.c: Likewise. --- malloc/mtrace.c | 5 ++++- malloc/set-freeres.c | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'malloc') diff --git a/malloc/mtrace.c b/malloc/mtrace.c index 505389f..0d170d6 100644 --- a/malloc/mtrace.c +++ b/malloc/mtrace.c @@ -36,6 +36,10 @@ #include +#ifdef _LIBC +# include +#endif + #ifdef USE_IN_LIBIO # include # define setvbuf(s, b, f, l) _IO_setvbuf (s, b, f, l) @@ -223,7 +227,6 @@ tr_reallochook (ptr, size, caller) #ifdef _LIBC -extern void __libc_freeres (void); /* This function gets called to make sure all memory the library allocates get freed and so does not irritate the user when studying diff --git a/malloc/set-freeres.c b/malloc/set-freeres.c index 814bc4a..169026c 100644 --- a/malloc/set-freeres.c +++ b/malloc/set-freeres.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,6 +19,7 @@ #include #include #include +#include DEFINE_HOOK (__libc_subfreeres, (void)); -- cgit v1.1