aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1991-09-20 22:03:49 +0000
committerPer Bothner <per@bothner.com>1991-09-20 22:03:49 +0000
commitab1e12a22ef7f8d43f423fef33dbe482099c805f (patch)
treecc68aec36fa1ae92a1fd9db94a904b771dcd3f6e
parent30c52cdf23c167bb7e6ba3c9770852746b3b2dbc (diff)
downloadgdb-ab1e12a22ef7f8d43f423fef33dbe482099c805f.zip
gdb-ab1e12a22ef7f8d43f423fef33dbe482099c805f.tar.gz
gdb-ab1e12a22ef7f8d43f423fef33dbe482099c805f.tar.bz2
Kludge to allow compilation by non-ANSI compilers.
-rw-r--r--gdb/ChangeLog5
-rwxr-xr-xgdb/mcheck.c4
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. */