aboutsummaryrefslogtreecommitdiff
path: root/sim/w65/run.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-08 18:07:02 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-08 18:07:02 +0000
commitb6de8f6a08cdd38b4ba5170b3e0d9b4075903fe1 (patch)
treea953e2c7e5decd1af9e5579d4dd7568877afb2e3 /sim/w65/run.c
parent247d4fb1aff17f1dda36ee0e9fc796d586d13d5c (diff)
downloadgdb-b6de8f6a08cdd38b4ba5170b3e0d9b4075903fe1.zip
gdb-b6de8f6a08cdd38b4ba5170b3e0d9b4075903fe1.tar.gz
gdb-b6de8f6a08cdd38b4ba5170b3e0d9b4075903fe1.tar.bz2
* configure.in: Convert to use autoconf.
* configure: New file, built by autoconf. * acconfig.h: New file. * config.in: New file, built by autoheader. * Makefile.in: Various changes for new configure script. Also: (INSTALL): Go up two levels, not one. (ALLOCA, MALLOC, OPCODES): Remove. (gencode): Use $(CC_FOR_BUILD). (case.o): Remove. (run.o, interp.o): Depend upon config.h. * interp.c: Include "config.h". Don't include "sysdep.h". Include <stdlib.h>, <time.h>, and <unistd.h> if they exist. * run.c: Include "config.h". Don't include "sysdep.h". Include <stdlib.h> if it exists. Include "getopt.h". Declare printf if necessary.
Diffstat (limited to 'sim/w65/run.c')
-rw-r--r--sim/w65/run.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sim/w65/run.c b/sim/w65/run.c
index a636e3f..eb76590 100644
--- a/sim/w65/run.c
+++ b/sim/w65/run.c
@@ -21,9 +21,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Steve Chamberlain
sac@cygnus.com */
+#include "config.h"
+
#include <stdio.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#include "getopt.h"
#include "bfd.h"
-#include "sysdep.h"
+
+#ifdef NEED_DECLARATION_PRINTF
+extern int printf ();
+#endif
void usage();
extern int optind;