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