chiark / gitweb /
Support IPv6 PTR lookups.
[adns] / src / config.h.in
CommitLineData
39f45e7e 1/* src/config.h.in. Generated automatically from configure.in by autoheader 2.13. */
b6953d1b 2
cc0f95d0 3/* Define if inline functions a la GCC are available. */
4#undef HAVE_INLINE
5
b6953d1b 6/* Define if function attributes a la GCC 2.5 and higher are available. */
7#undef HAVE_GNUC25_ATTRIB
8
9/* Define if constant functions a la GCC 2.5 and higher are available. */
10#undef HAVE_GNUC25_CONST
11
12/* Define if nonreturning functions a la GCC 2.5 and higher are available. */
13#undef HAVE_GNUC25_NORETURN
14
15/* Define if printf-format argument lists a la GCC are available. */
16#undef HAVE_GNUC25_PRINTFFORMAT
17
a3f177e4 18/* Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there. */
19#undef HAVEUSE_RPCTYPES_H
20
74c94831 21/* Define if you have the poll function. */
22#undef HAVE_POLL
23
8ddf8d49 24/* Define if you have the nsl library (-lnsl). */
25#undef HAVE_LIBNSL
26
27/* Define if you have the socket library (-lsocket). */
28#undef HAVE_LIBSOCKET
29
b6953d1b 30/* Use the definitions: */
31
cc0f95d0 32#ifndef HAVE_INLINE
33#define inline
34#endif
35
74c94831 36#ifdef HAVE_POLL
37#include <sys/poll.h>
38#else
0f1dc447 39/* kludge it up */
74c94831 40struct pollfd { int fd; short events; short revents; };
41#define POLLIN 1
42#define POLLPRI 2
43#define POLLOUT 4
44#endif
45
b6953d1b 46/* GNU C attributes. */
47#ifndef FUNCATTR
48#ifdef HAVE_GNUC25_ATTRIB
49#define FUNCATTR(x) __attribute__(x)
50#else
51#define FUNCATTR(x)
52#endif
53#endif
54
55/* GNU C printf formats, or null. */
56#ifndef ATTRPRINTF
57#ifdef HAVE_GNUC25_PRINTFFORMAT
58#define ATTRPRINTF(si,tc) format(printf,si,tc)
59#else
60#define ATTRPRINTF(si,tc)
61#endif
62#endif
63#ifndef PRINTFFORMAT
64#define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
65#endif
66
67/* GNU C nonreturning functions, or null. */
68#ifndef ATTRNORETURN
69#ifdef HAVE_GNUC25_NORETURN
70#define ATTRNORETURN noreturn
71#else
72#define ATTRNORETURN
73#endif
74#endif
75#ifndef NONRETURNING
76#define NONRETURNING FUNCATTR((ATTRNORETURN))
77#endif
78
79/* Combination of both the above. */
80#ifndef NONRETURNPRINTFFORMAT
81#define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
82#endif
83
84/* GNU C constant functions, or null. */
85#ifndef ATTRCONST
86#ifdef HAVE_GNUC25_CONST
87#define ATTRCONST const
88#else
89#define ATTRCONST
90#endif
91#endif
92#ifndef CONSTANT
93#define CONSTANT FUNCATTR((ATTRCONST))
94#endif
a3f177e4 95
96#ifdef HAVEUSE_RPCTYPES_H
97#include <rpc/types.h>
98#endif