From: dje@google.com (Doug Evans)
To: gdb-patches@sourceware.org
Subject: [RFA] Include unistd.h in gdbserver/event-loop.c.
Date: Sat, 19 Dec 2009 01:00:00 -0000 [thread overview]
Message-ID: <20091219005959.8352484412@ruffy.mtv.corp.google.com> (raw)
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);
next reply other threads:[~2009-12-19 1:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-19 1:00 Doug Evans [this message]
2009-12-19 1:14 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091219005959.8352484412@ruffy.mtv.corp.google.com \
--to=dje@google.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox