summaryrefslogtreecommitdiff
path: root/gcc/mips-tfile.c
diff options
context:
space:
mode:
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>1992-10-29 19:32:25 +0000
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>1992-10-29 19:32:25 +0000
commit3eb8bff5821c5365e8c6bec5084655744937ec97 (patch)
treee0e8c629357ac350bf012e7eed8316b175362b98 /gcc/mips-tfile.c
parenta98ec90b3fb4be3141af70285d2fd40028fbc0f0 (diff)
downloadgcc-3eb8bff5821c5365e8c6bec5084655744937ec97.tar.gz
Allow for cross compilation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2649 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mips-tfile.c')
-rw-r--r--gcc/mips-tfile.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c
index 0aefb82dc1e..47be18311c1 100644
--- a/gcc/mips-tfile.c
+++ b/gcc/mips-tfile.c
@@ -685,7 +685,6 @@ main ()
#undef index
#include <sys/types.h>
-#include <a.out.h>
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
@@ -693,6 +692,16 @@ main ()
#include <signal.h>
#include <sys/stat.h>
+#ifndef CROSS_COMPILE
+#include <a.out.h>
+#else
+#include "symconst.h"
+#define LANGUAGE_C
+#include "sym.h"
+#include "filehdr.h"
+#define ST_RFDESCAPE 0xfff
+#endif
+
#if defined (USG) || defined (NO_STAB_H)
#include "gstab.h" /* If doing DBX on sysV, use our own stab.h. */
#else