diff options
-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); |