Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Include unistd.h in gdbserver/event-loop.c.
@ 2009-12-19  1:00 Doug Evans
  2009-12-19  1:14 ` Pedro Alves
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Evans @ 2009-12-19  1:00 UTC (permalink / raw)
  To: gdb-patches

Hi.

Another problem with the android port is that event-loop.c
doesn't compile because fd_set isn't defined.
remote-utils.c does compile; it also uses fd_set so I copied
the relevant header from there.

Ok to check in?

2009-12-18  Doug Evans  <dje@google.com>

	* event-loop.c: Include unistd.h if it exists.

Index: event-loop.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/event-loop.c,v
retrieving revision 1.2
diff -u -p -r1.2 event-loop.c
--- event-loop.c	1 Apr 2009 22:48:05 -0000	1.2
+++ event-loop.c	19 Dec 2009 00:51:24 -0000
@@ -34,6 +34,11 @@
 #include <errno.h>
 #endif
 
+/* To get fd_set on android.  */
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 typedef struct gdb_event gdb_event;
 typedef void (event_handler_func) (int);
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-19  1:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-19  1:00 [RFA] Include unistd.h in gdbserver/event-loop.c Doug Evans
2009-12-19  1:14 ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox