+ Bugfixes:
[adns] / src / config.h.in
CommitLineData
11b35193 1/* src/config.h.in. Generated automatically from configure.in by autoheader. */
2
5a0be244 3/* Define if inline functions a la GCC are available. */
4#undef HAVE_INLINE
5
11b35193 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
04e7fb4d 18/* Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there. */
19#undef HAVEUSE_RPCTYPES_H
20
620c146d 21/* Define if you have the poll function. */
22#undef HAVE_POLL
23
5a0be244 24/* Define if you have the <sys/select.h> header file. */
25#undef HAVE_SYS_SELECT_H
26
e9e1b0e6 27/* Define if you have the nsl library (-lnsl). */
28#undef HAVE_LIBNSL
29
30/* Define if you have the socket library (-lsocket). */
31#undef HAVE_LIBSOCKET
32
11b35193 33/* Use the definitions: */
34
5a0be244 35#ifndef HAVE_INLINE
36#define inline
37#endif
38
620c146d 39#ifdef HAVE_POLL
40#include <sys/poll.h>
41#else
8d3d3e02 42/* kludge it up */
620c146d 43struct pollfd { int fd; short events; short revents; };
44#define POLLIN 1
45#define POLLPRI 2
46#define POLLOUT 4
47#endif
48
11b35193 49/* GNU C attributes. */
50#ifndef FUNCATTR
51#ifdef HAVE_GNUC25_ATTRIB
52#define FUNCATTR(x) __attribute__(x)
53#else
54#define FUNCATTR(x)
55#endif
56#endif
57
58/* GNU C printf formats, or null. */
59#ifndef ATTRPRINTF
60#ifdef HAVE_GNUC25_PRINTFFORMAT
61#define ATTRPRINTF(si,tc) format(printf,si,tc)
62#else
63#define ATTRPRINTF(si,tc)
64#endif
65#endif
66#ifndef PRINTFFORMAT
67#define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
68#endif
69
70/* GNU C nonreturning functions, or null. */
71#ifndef ATTRNORETURN
72#ifdef HAVE_GNUC25_NORETURN
73#define ATTRNORETURN noreturn
74#else
75#define ATTRNORETURN
76#endif
77#endif
78#ifndef NONRETURNING
79#define NONRETURNING FUNCATTR((ATTRNORETURN))
80#endif
81
82/* Combination of both the above. */
83#ifndef NONRETURNPRINTFFORMAT
84#define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
85#endif
86
87/* GNU C constant functions, or null. */
88#ifndef ATTRCONST
89#ifdef HAVE_GNUC25_CONST
90#define ATTRCONST const
91#else
92#define ATTRCONST
93#endif
94#endif
95#ifndef CONSTANT
96#define CONSTANT FUNCATTR((ATTRCONST))
97#endif
04e7fb4d 98
99#ifdef HAVEUSE_RPCTYPES_H
100#include <rpc/types.h>
101#endif
5a0be244 102
103#ifdef HAVE_SYS_SELECT_H
104#include <sys/select.h>
105#endif