chiark / gitweb /
Compile without HAVE_POLL ?
[adns.git] / acconfig.h
index 73a7fe372fe7083dd2c36724e62d0bc2dcacdeb2..ae59c59ed9a47b37838a49232e4c44f9a92b72c0 100644 (file)
 
 /* 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