summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-05-16 20:22:02 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-05-16 20:22:02 +0000
commit022367473f9e6fc077a09a69c50af81f27f5e448 (patch)
tree9d3b72fcfe8555bbe29f91afa09c0abe45845313
parentd07986e898de31c8060abbd9d1b7853c5ff062fc (diff)
downloadgdb-022367473f9e6fc077a09a69c50af81f27f5e448.tar.gz
* ser-e7kpc.c: Include <time.h> if it is available.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/ser-e7kpc.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f61db849f3e..6e68de4427d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,4 +1,8 @@
-2006-06-16 Joel Brobecker <brobecker@adacore.com>
+2006-05-16 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * ser-e7kpc.c: Include <time.h> if it is available.
+
+2006-05-16 Joel Brobecker <brobecker@adacore.com>
* version.in (version.in): Bump version number to 6.5.50 now
that the gdb-6.5 branch has been created.
diff --git a/gdb/ser-e7kpc.c b/gdb/ser-e7kpc.c
index cd1485c2266..fd3252db830 100644
--- a/gdb/ser-e7kpc.c
+++ b/gdb/ser-e7kpc.c
@@ -33,6 +33,10 @@
#include <sys/dos.h>
#endif
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
+
static int e7000pc_open (struct serial *scb, const char *name);
static void e7000pc_raw (struct serial *scb);
static int e7000pc_readchar (struct serial *scb, int timeout);