aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/inftarg.c4
-rw-r--r--gdb/infttrace.c4
3 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5d12ee6..b8d6c2a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
+
+ * inftarg.c: change <sys/unistd.h> to <unistd.h> and
+ conditionalize its inclusion.
+ * infttrace.c: ditto.
+
Thu Dec 31 15:26:13 1998 Stan Shebs <shebs@andros.cygnus.com>
* corelow.c (core_ops): Don't initialize statically.
diff --git a/gdb/inftarg.c b/gdb/inftarg.c
index 921cbbe..9439a9f 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 <wait.h> */
#include "wait.h"
-#include <sys/unistd.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#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 e23f163..04d9a5c 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 <sys/ioctl.h>
#include <sys/ttrace.h>
-#include <sys/unistd.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#include <sys/mman.h>
#ifndef NO_PTRACE_H