* 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 3699d1a..378bbf7 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 a76a178..78f9167 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);