From: David Taylor Date: Mon, 4 Jan 1999 20:07:59 +0000 (+0000) Subject: change to and conditionalize its inclusion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e1d3d67b9dc0bf8436e25c0585a61d4a16530ba;p=binutils-gdb.git change to and conditionalize its inclusion. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5d12ee67bc9..b8d6c2ad8e4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Mon Jan 4 15:05:29 1999 David Taylor + + * inftarg.c: change to and + conditionalize its inclusion. + * infttrace.c: ditto. + Thu Dec 31 15:26:13 1998 Stan Shebs * corelow.c (core_ops): Don't initialize statically. diff --git a/gdb/inftarg.c b/gdb/inftarg.c index 921cbbe6718..9439a9f7cf6 100644 --- a/gdb/inftarg.c +++ b/gdb/inftarg.c @@ -42,7 +42,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* "wait.h" fills in the gaps left by */ #include "wait.h" -#include +#ifdef HAVE_UNISTD_H +#include +#endif extern struct symtab_and_line * child_enable_exception_callback PARAMS ((enum exception_event_kind, int)); diff --git a/gdb/infttrace.c b/gdb/infttrace.c index e23f1630f0a..04d9a5c43fc 100644 --- a/gdb/infttrace.c +++ b/gdb/infttrace.c @@ -44,7 +44,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include -#include +#ifdef HAVE_UNISTD_H +#include +#endif #include #ifndef NO_PTRACE_H