From ab1e12a22ef7f8d43f423fef33dbe482099c805f Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Fri, 20 Sep 1991 22:03:49 +0000 Subject: [PATCH] Kludge to allow compilation by non-ANSI compilers. --- gdb/ChangeLog | 5 +++++ gdb/mcheck.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8bcb68711d1..3895f111ed9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Fri Sep 20 15:00:57 1991 Per Bothner (bothner at cygnus.com) + + * mcheck.c: Add __ONEFILE kludge to allow compilation by non-ANSI + compilers (which may lack stddef.h). + Fri Sep 20 13:29:42 1991 John Gilmore (gnu at cygnus.com) * dbxread.c (read_dbx_symtab, process_one_symbol): N_FN and diff --git a/gdb/mcheck.c b/gdb/mcheck.c index 309fcfd0711..497bab2c01c 100755 --- a/gdb/mcheck.c +++ b/gdb/mcheck.c @@ -20,6 +20,10 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "ansidecl.h" +#define size_t unsigned int +#define ptrdiff_t int +#define NULL 0 +#define __ONEFILE #include "gmalloc.h" /* Old hook values. */ -- 2.30.2