X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=blobdiff_plain;f=src%2Fconfig.h.in;h=bd36686d648b7b6ea9007a10a1c3c4c7dc5ea351;hp=74267bfb20a024071958cc3ae4a8121499b428cb;hb=898afc783a7bd5947405b4fd828a34dfbd9b99a8;hpb=e9e1b0e6b53d86c2bee91711d94e87a033176f9b diff --git a/src/config.h.in b/src/config.h.in index 74267bf..bd36686 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -1,4 +1,7 @@ -/* src/config.h.in. Generated automatically from configure.in by autoheader. */ +/* src/config.h.in. Generated automatically from configure.in by autoheader 2.13. */ + +/* Define if inline functions a la GCC are available. */ +#undef HAVE_INLINE /* Define if function attributes a la GCC 2.5 and higher are available. */ #undef HAVE_GNUC25_ATTRIB @@ -12,6 +15,12 @@ /* 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 @@ -20,6 +29,20 @@ /* Use the definitions: */ +#ifndef HAVE_INLINE +#define inline +#endif + +#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 @@ -69,3 +92,7 @@ #ifndef CONSTANT #define CONSTANT FUNCATTR((ATTRCONST)) #endif + +#ifdef HAVEUSE_RPCTYPES_H +#include +#endif