aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/event-loop.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-12-19 01:24:51 +0000
committerDoug Evans <dje@google.com>2009-12-19 01:24:51 +0000
commite946488510bafc86fde2f58a6da1709b20b61bef (patch)
treeb111b165c8b4894704fb830f609917eeaec13fe3 /gdb/gdbserver/event-loop.c
parent07d4f67e9d89774b962d0b506e1b478125c6189a (diff)
downloadgdb-e946488510bafc86fde2f58a6da1709b20b61bef.zip
gdb-e946488510bafc86fde2f58a6da1709b20b61bef.tar.gz
gdb-e946488510bafc86fde2f58a6da1709b20b61bef.tar.bz2
* event-loop.c: Include unistd.h if it exists.
Diffstat (limited to 'gdb/gdbserver/event-loop.c')
-rw-r--r--gdb/gdbserver/event-loop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbserver/event-loop.c b/gdb/gdbserver/event-loop.c
index a76a178..78f9167 100644
--- a/gdb/gdbserver/event-loop.c
+++ b/gdb/gdbserver/event-loop.c
@@ -34,6 +34,10 @@
#include <errno.h>
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
typedef struct gdb_event gdb_event;
typedef void (event_handler_func) (int);