chiark / gitweb /
New poll(2) stuff etc. Does not work yet, but compiles.
[adns.git] / acconfig.h
index 73a7fe372fe7083dd2c36724e62d0bc2dcacdeb2..16672a6689bb91e564fb3828201e8332f2c21b43 100644 (file)
 
 /* Use the definitions: */
 
+#ifdef HAVE_POLL
+#include <sys/poll.h>
+#else
+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