From ebd99d54094a5bfae4c12fc0a2ca076a23d8c569 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Sun, 2 May 1993 18:57:03 +0000 Subject: [PATCH] * 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 . * i386v-nat.c (sys/reg.h): Conditionalize include on NO_SYS_REG_H. Linux doesn't have . * ser-unix.c (termio.h): Include like other files that include termio.h, not which may not exist (on linux for example). --- gdb/ChangeLog | 12 ++++++++++++ gdb/i386v-nat.c | 5 ++++- gdb/ser-unix.c | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 92076d7..449f815 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +Sun May 2 11:43:57 1993 Fred Fish (fnf@cygnus.com) + + * 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 . + * i386v-nat.c (sys/reg.h): Conditionalize include on + NO_SYS_REG_H. Linux doesn't have . + * ser-unix.c (termio.h): Include like other files that + include termio.h, not which may not exist (on + linux for example). + Sat May 1 16:05:24 1993 Fred Fish (fnf@cygnus.com) * valprint.c (print_longest): Change format parameter from a 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 #include +#ifndef NO_SYS_REG_H #include +#endif + #include "ieee-float.h" #include "target.h" diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index 71f79a1..3caccfa 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -49,7 +49,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #endif #ifdef HAVE_TERMIO -#include +#include #endif #ifdef HAVE_SGTTY #include -- 2.7.4