* event-loop.c: Include unistd.h if it exists.
authorDoug Evans <dje@google.com>
Sat, 19 Dec 2009 01:24:51 +0000 (01:24 +0000)
committerDoug Evans <dje@google.com>
Sat, 19 Dec 2009 01:24:51 +0000 (01:24 +0000)
gdb/gdbserver/ChangeLog
gdb/gdbserver/event-loop.c

index 3699d1ac2e2fdd9f763802ca7646310988c8bd03..378bbf78d04d0fec6f040ef0387ca7167fe9a486 100644 (file)
@@ -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.
 
index a76a178223ffdd47da6868dc823c8783325bc86e..78f9167c813590bfff181b692b3971e092ffd623 100644 (file)
 #include <errno.h>
 #endif
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 typedef struct gdb_event gdb_event;
 typedef void (event_handler_func) (int);