aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386v-nat.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1993-05-02 18:57:03 +0000
committerFred Fish <fnf@specifix.com>1993-05-02 18:57:03 +0000
commitebd99d54094a5bfae4c12fc0a2ca076a23d8c569 (patch)
tree59411a495ed1589088c0dca09507327a3e964af4 /gdb/i386v-nat.c
parent772b5e9b598e502f2260374854f4d310f1c09da8 (diff)
downloadgdb-ebd99d54094a5bfae4c12fc0a2ca076a23d8c569.zip
gdb-ebd99d54094a5bfae4c12fc0a2ca076a23d8c569.tar.gz
gdb-ebd99d54094a5bfae4c12fc0a2ca076a23d8c569.tar.bz2
* defs.h (UINT_MAX, LONG_MAX, INT_MAX, INT_MIN): Replace hex
constants with slightly more portable definitions (still depends on 2's complement arithmetic though). * config/i386/nm-linux.h: Define NO_SYS_REG_H for no <sys/reg.h>. * i386v-nat.c (sys/reg.h): Conditionalize include on NO_SYS_REG_H. Linux doesn't have <sys/reg.h>. * ser-unix.c (termio.h): Include <termio.h> like other files that include termio.h, not <sys/termio.h> which may not exist (on linux for example).
Diffstat (limited to 'gdb/i386v-nat.c')
-rw-r--r--gdb/i386v-nat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/i386v-nat.c b/gdb/i386v-nat.c
index 3598d3a..e2ab3f3 100644
--- a/gdb/i386v-nat.c
+++ b/gdb/i386v-nat.c
@@ -1,4 +1,4 @@
-/* Intel 386 native support.
+/* Intel 386 native support for SYSV systems (pre-SVR4).
Copyright (C) 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
This file is part of GDB.
@@ -37,7 +37,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/file.h>
#include <sys/stat.h>
+#ifndef NO_SYS_REG_H
#include <sys/reg.h>
+#endif
+
#include "ieee-float.h"
#include "target.h"