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