From e946488510bafc86fde2f58a6da1709b20b61bef Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sat, 19 Dec 2009 01:24:51 +0000 Subject: [PATCH] * event-loop.c: Include unistd.h if it exists. --- gdb/gdbserver/ChangeLog | 2 ++ gdb/gdbserver/event-loop.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 3699d1ac2e2..378bbf78d04 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,7 @@ 2009-12-18 Doug Evans + * 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 a76a178223f..78f9167c813 100644 --- a/gdb/gdbserver/event-loop.c +++ b/gdb/gdbserver/event-loop.c @@ -34,6 +34,10 @@ #include #endif +#ifdef HAVE_UNISTD_H +#include +#endif + typedef struct gdb_event gdb_event; typedef void (event_handler_func) (int); -- 2.30.2