X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/b6953d1b46cb12e32e4d2926bce078ef10825785..46c6c5f98e3d3b5434eb453a2a259ee4e4de2895:/acconfig.h diff --git a/acconfig.h b/acconfig.h index 73a7fe3..ae59c59 100644 --- a/acconfig.h +++ b/acconfig.h @@ -36,6 +36,16 @@ /* Use the definitions: */ +#ifdef HAVE_POLL +#include +#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