chiark
/
gitweb
/
~ianmdlvl
/
adns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compile without HAVE_POLL ?
[adns.git]
/
acconfig.h
diff --git
a/acconfig.h
b/acconfig.h
index 73a7fe372fe7083dd2c36724e62d0bc2dcacdeb2..ae59c59ed9a47b37838a49232e4c44f9a92b72c0 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