X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=blobdiff_plain;f=src%2Fconfig.h.in;h=93a4ad8e93ede95b3c0a22e16260d25ecfd0559a;hp=a665e34a39b6daa63b129a300b5fde949bac4c5b;hb=0544e0de19b492a0cda3b65584f9822ba36e50fc;hpb=11b3519314b471bb042bf3a69bbbb3adaa7aa19d diff --git a/src/config.h.in b/src/config.h.in index a665e34..93a4ad8 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -12,8 +12,30 @@ /* 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 + +/* 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 +/* 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 @@ -63,3 +85,7 @@ #ifndef CONSTANT #define CONSTANT FUNCATTR((ATTRCONST)) #endif + +#ifdef HAVEUSE_RPCTYPES_H +#include +#endif