X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/74c948317bd4785fbfa8b6047b8da2e1705b1863..a79ac5bae05711d622671eacfbafd19a5a94ae3c:/src/config.h.in diff --git a/src/config.h.in b/src/config.h.in index 80590fb..93a4ad8 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -12,6 +12,9 @@ /* Define if printf-format argument lists a la GCC are available. */ #undef HAVE_GNUC25_PRINTFFORMAT +/* Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there. */ +#undef HAVEUSE_RPCTYPES_H + /* Define if you have the poll function. */ #undef HAVE_POLL @@ -26,6 +29,7 @@ #ifdef HAVE_POLL #include #else +/* kludge it up */ struct pollfd { int fd; short events; short revents; }; #define POLLIN 1 #define POLLPRI 2 @@ -81,3 +85,7 @@ struct pollfd { int fd; short events; short revents; }; #ifndef CONSTANT #define CONSTANT FUNCATTR((ATTRCONST)) #endif + +#ifdef HAVEUSE_RPCTYPES_H +#include +#endif