X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/b6953d1b46cb12e32e4d2926bce078ef10825785..3ea0e5b91aefac797fd21d2de4966c559e64cb7a:/src/config.h.in diff --git a/src/config.h.in b/src/config.h.in index a665e34..80590fb 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -12,8 +12,26 @@ /* Define if printf-format argument lists a la GCC are available. */ #undef HAVE_GNUC25_PRINTFFORMAT +/* Define if you have the poll function. */ +#undef HAVE_POLL + +/* Define if you have the nsl library (-lnsl). */ +#undef HAVE_LIBNSL + +/* Define if you have the socket library (-lsocket). */ +#undef HAVE_LIBSOCKET + /* Use the definitions: */ +#ifdef HAVE_POLL +#include +#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