aboutsummaryrefslogtreecommitdiff
path: root/gdb/event-loop.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-07-05 10:25:43 +0000
committerAndrew Cagney <cagney@redhat.com>2000-07-05 10:25:43 +0000
commit409a3f64ac594a93770f9b640941772787fa745c (patch)
tree42a7daabd74d6f6b7fc987cada81bdc08a0d2015 /gdb/event-loop.c
parenta5cb8284bfabd5fd447b6f08c92987538bf8d731 (diff)
downloadgdb-409a3f64ac594a93770f9b640941772787fa745c.zip
gdb-409a3f64ac594a93770f9b640941772787fa745c.tar.gz
gdb-409a3f64ac594a93770f9b640941772787fa745c.tar.bz2
Check for <sys/poll.h>.
Diffstat (limited to 'gdb/event-loop.c')
-rw-r--r--gdb/event-loop.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/event-loop.c b/gdb/event-loop.c
index 6a66ff0..21b606d 100644
--- a/gdb/event-loop.c
+++ b/gdb/event-loop.c
@@ -23,9 +23,15 @@
#include "top.h"
#include "event-loop.h"
#include "event-top.h"
+
#ifdef HAVE_POLL
+#if defined (HAVE_POLL_H)
#include <poll.h>
+#elif defined (HAVE_SYS_POLL_H)
+#include <sys/poll.h>
+#endif
#endif
+
#include <sys/types.h>
#include <string.h>
#include <errno.h>