~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adns__checkqueues fix for large queues
[adns]
/
acconfig.h
diff --git
a/acconfig.h
b/acconfig.h
index
73a7fe3
..
ae59c59
100644
(file)
--- a/
acconfig.h
+++ b/
acconfig.h
@@
-36,6
+36,16
@@
/* Use the definitions: */
/* Use the definitions: */
+#ifdef HAVE_POLL
+#include <sys/poll.h>
+#else
+/* kludge it up */
+struct pollfd { int fd; short events; short revents; };
+#define POLLIN 1
+#define POLLPRI 2
+#define POLLOUT 4
+#endif
+
/* GNU C attributes. */
#ifndef FUNCATTR
#ifdef HAVE_GNUC25_ATTRIB
/* GNU C attributes. */
#ifndef FUNCATTR
#ifdef HAVE_GNUC25_ATTRIB