chiark / gitweb /
adns__checkqueues fix for large queues
[adns.git] / src / config.h.in
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
15 /* Define if you have the poll function.  */
16 #undef HAVE_POLL
17
18 /* Define if you have the nsl library (-lnsl).  */
19 #undef HAVE_LIBNSL
20
21 /* Define if you have the socket library (-lsocket).  */
22 #undef HAVE_LIBSOCKET
23
24 /* Use the definitions: */
25
26 #ifdef HAVE_POLL
27 #include <sys/poll.h>
28 #else
29 struct pollfd { int fd; short events; short revents; };
30 #define POLLIN  1
31 #define POLLPRI 2
32 #define POLLOUT 4
33 #endif
34
35 /* GNU C attributes. */
36 #ifndef FUNCATTR
37 #ifdef HAVE_GNUC25_ATTRIB
38 #define FUNCATTR(x) __attribute__(x)
39 #else
40 #define FUNCATTR(x)
41 #endif
42 #endif
43
44 /* GNU C printf formats, or null. */
45 #ifndef ATTRPRINTF
46 #ifdef HAVE_GNUC25_PRINTFFORMAT
47 #define ATTRPRINTF(si,tc) format(printf,si,tc)
48 #else
49 #define ATTRPRINTF(si,tc)
50 #endif
51 #endif
52 #ifndef PRINTFFORMAT
53 #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc)))
54 #endif
55
56 /* GNU C nonreturning functions, or null. */
57 #ifndef ATTRNORETURN
58 #ifdef HAVE_GNUC25_NORETURN
59 #define ATTRNORETURN noreturn
60 #else
61 #define ATTRNORETURN
62 #endif
63 #endif
64 #ifndef NONRETURNING
65 #define NONRETURNING FUNCATTR((ATTRNORETURN))
66 #endif
67
68 /* Combination of both the above. */
69 #ifndef NONRETURNPRINTFFORMAT
70 #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN))
71 #endif
72
73 /* GNU C constant functions, or null. */
74 #ifndef ATTRCONST
75 #ifdef HAVE_GNUC25_CONST
76 #define ATTRCONST const
77 #else
78 #define ATTRCONST
79 #endif
80 #endif
81 #ifndef CONSTANT
82 #define CONSTANT FUNCATTR((ATTRCONST))
83 #endif