diff options
author | Doug Evans <dje@google.com> | 2009-12-19 01:24:51 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-12-19 01:24:51 +0000 |
commit | e946488510bafc86fde2f58a6da1709b20b61bef (patch) | |
tree | b111b165c8b4894704fb830f609917eeaec13fe3 /gdb/gdbserver | |
parent | 07d4f67e9d89774b962d0b506e1b478125c6189a (diff) | |
download | gdb-e946488510bafc86fde2f58a6da1709b20b61bef.zip gdb-e946488510bafc86fde2f58a6da1709b20b61bef.tar.gz gdb-e946488510bafc86fde2f58a6da1709b20b61bef.tar.bz2 |
* event-loop.c: Include unistd.h if it exists.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/gdbserver/event-loop.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 3699d1a..378bbf7 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,7 @@ 2009-12-18 Doug Evans <dje@google.com> + * event-loop.c: Include unistd.h if it exists. + * linux-low.c (my_waitpid): Move definition away from being in between linux_tracefork_child/linux_test_for_tracefork. 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); |