diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rwxr-xr-x | gdb/mcheck.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8bcb687..3895f11 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 309fcfd..497bab2 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. */ |