X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=acconfig.h;h=ae59c59ed9a47b37838a49232e4c44f9a92b72c0;hb=16cf5367e3a455f322328315f3c13ed23d68b690;hp=73a7fe372fe7083dd2c36724e62d0bc2dcacdeb2;hpb=11b3519314b471bb042bf3a69bbbb3adaa7aa19d;p=adns.git 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