From 4ff3dfab548b25c2b413095dc021e6ab32fab22b Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 18 Aug 1998 23:04:24 +0000 Subject: 1998-08-18 Jason Molenda (jsm@bugshack.cygnus.com) * configure.in: Add more header files to AC_CHECK_HEADERS. * configure: Regenerated. * command.c: Include wait.h or sys/wait.h if present. * inftarg.c: Ditto. * core-aout.c: Include ptrace.h or sys/ptrace.h if present, based on autoconf test. * infptrace.c: Ditto. * expprint.c: Include ctype.h for isprint prototype. * i386aix-nat.c: Include sys/reg.h if autoconf says it is present. * i386v-nat.c: Include ptrace.h, sys/ptrace.h, and sys/reg.h if present, based on autoconf test. * utils.c: Include curses.h and term.h if present. (puts_debug): Change 'carriage_return' local variable to return_p to avoid name clash. * config/m68k/nm-apollo68b.h: Don't define PTRACE_IN_WRONG_PLACE, determine it with autoconf. * config/i386/nm-linux.h: Don't define NO_SYS_REG_H, determine it with autoconf. * config/i386/nm-i386sco.h: Don't define NO_PTRACE_H, determine it with autoconf. * config/i386/nm-i386v.h: Ditto. * config/i386/nm-symmetry.h: Ditto. * config/m88k/xm-cxux.h: Ditto. * config/m88k/xm-dgux.h: Ditto. * config/m68k/delta68.mh (NAT_FILE): nm-delta68.h no longer necessary. * config/m68k/nm-delta68.h: Removed. --- gdb/i386v-nat.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'gdb/i386v-nat.c') diff --git a/gdb/i386v-nat.c b/gdb/i386v-nat.c index a7eea53..250b475 100644 --- a/gdb/i386v-nat.c +++ b/gdb/i386v-nat.c @@ -18,6 +18,15 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "defs.h" + +#ifdef HAVE_PTRACE_H +# include +#else +# ifdef HAVE_SYS_PTRACE_H +# include +# endif +#endif + #include "frame.h" #include "inferior.h" #include "language.h" @@ -41,7 +50,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include "gdb_stat.h" -#ifndef NO_SYS_REG_H +#ifdef HAVE_SYS_REG_H #include #endif -- cgit v1.1