aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Taylor <taylor@redhat.com>1999-01-04 20:07:59 +0000
committerDavid Taylor <taylor@redhat.com>1999-01-04 20:07:59 +0000
commit3e1d3d67b9dc0bf8436e25c0585a61d4a16530ba (patch)
tree14b9327556bc05f92dcbfd90f2f0cf16148b3ac9
parent61ada545ec53b05f8fa34ea4cc4d811c7c6c675a (diff)
downloadgdb-3e1d3d67b9dc0bf8436e25c0585a61d4a16530ba.zip
gdb-3e1d3d67b9dc0bf8436e25c0585a61d4a16530ba.tar.gz
gdb-3e1d3d67b9dc0bf8436e25c0585a61d4a16530ba.tar.bz2
change <sys/unistd.h> to <unistd.h> and conditionalize its inclusion.
-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